Powershell in Navision



'll Try to keep things as easy as possible

Powershell is a scripting tool, we often see people using following window -


Don't use this window, instead use Powershell ISE -


Above shown window is more of an IDE for using Powershell, it helps you to use Powershell commands but in an easier way.

How to start this?

Search for Powershell ISE and choose Run as an administrator -





Write the following commands - 

Set-ExecutionPolicy Unrestricted 

Import-Module "${env:ProgramFiles(x86)}\Microsoft Dynamics NAV\100\RoleTailored Client\Microsoft.Dynamics.Nav.Model.Tools.psd1" -WarningAction SilentlyContinue | out-null

Import-Module "$env:ProgramFiles\Microsoft Dynamics NAV\100\Service\NavAdminTool.ps1" -WarningAction SilentlyContinue | Out-Null

Import-Module "${env:ProgramFiles(x86)}\Microsoft Dynamics NAV\100\RoleTailored Client\Microsoft.Dynamics.Nav.Apps.Tools.psd1" -WarningAction SilentlyContinue | Out-Null

Run all the above lines - 

F5, or to run the selected lines F8.

Hope this post will helpful.

Please feel free to connect with me on My whatsapp - 91-9999926834

Keep Learning!!

Best Regards
Prateek Arya


Comments

Popular posts from this blog

STX File Issue - Errors in the text conversion Dynamics NAV 2017