Powershell within NAV

KSP_NAVKSP_NAV Member Posts: 68
Hello,

I'm trying to execute the Powershell script from NAV 2015 and was able to execute the script for standard commands available in "C:\Program Files\Microsoft Dynamics NAV\80\Service\NavAdminTool.ps1". I've refered the below link for executing the comands like "get-service", "get-NAVcompany" etc... from NAV and it is working fine.

http://www.waldo.be/2014/12/17/running-powershell-from-nav/

However, i was unable to execute the new commands which is created. example: Start-NAVApplicationObjectInWindowsClient which is explained in http://www.waldo.be/2015/07/09/start-nav-object-in-rtc-with-powershell/.

Has anyone tried executing your new commands from NAV 2015? If so, please provide us some sample scripts or example to trigger the new commands from NAV.

Also, i tried to use the "Powershellrunner" in NAV 2015 (add-in which is available from NAV 2016) but getting error like "Could not load file or assembly" even though after adding the Add-in the required folders and also tried by adding it in Control-Addins but unable to execute because of the error.

Has anyone tried this or is this achievable?
Sign In or Register to comment.