When i try GET-AXModel Command in Windows Power shell. I Am getting Above error.
Please anyone help me solve out.
*This post is locked for comments
Please take your time next time to read through the article more thoroughly. This is the third time I try to steer you in the right direction to run the powershell command to load the assemblies for AX in order to be able to use the AX cmdlets.
. "C:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities\Microsoft.Dynamics.ManagementUtilities.ps1"
Thank you it will helps. but when i try this command Get-Command *ax* -CommandType "Cmdlet" i am not able to get cmdlet assemblies. it shows empty. So how can i load cmdlet assemblies?
It obviously does not work in regular powershell window if you did not load the assembly, like I suggested. Martin also mentions what to run in this article, have a look, maybe you'll get it right this time:
Thank you for the quick reply. The Ax management utilities are already Installed, when i tried AX PowerShell its working fine. but if i tried in normal windows power shell its not working
You need to install the AX Management Utilities to use those commands. Then it is under Windows > Control Panel > Administrative tools > AX Management Shell.
Alternatively you could load the libraries yourself by running the powershell file (.ps1 extension) in the management shell's folder, if you just started the regular powershell window.
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,151 Super User 2024 Season 2
Martin Dráb 229,993 Most Valuable Professional
nmaenpaa 101,156