Hello everyone,
I want to ask that how can I run NAV commands in Windows PowerShell. I have tried importing NAV module but didn't worked for me. Kindly help.
error: The term 'Publish-NAVApp' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
Hi, Mohana is right, just adding a simple test.
For example, BC 22.0:
Hope this helps as well.
Thanks.
ZHU
Hi Muhammad Anas Naeemi,
You can try this command.
Import-Module 'C:\Program Files\Microsoft Dynamics 365 Business Central\200\Service\NavAdminTool.ps1'
You have to import the NAVAdminTool first
Import-Module 'C:\Program Files\Microsoft Dynamics 365 Business Central\210\Service\NavAdminTool.ps1'
Path may change depending on the BC version you are using
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,219 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156