Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

GET-AXModel command is not recognized in Windows PowerShell

Posted on by 765

ModelStoreProblem.png

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

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: GET-AXModel command is not recognized in Windows PowerShell

    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"



  • Saravanaa Profile Picture
    Saravanaa 765 on at
    RE: GET-AXModel command is not recognized in Windows PowerShell

    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?

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: GET-AXModel command is not recognized in Windows PowerShell

    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:

    dev.goshoom.net/.../ax2012-powershell-en

  • Saravanaa Profile Picture
    Saravanaa 765 on at
    RE: GET-AXModel command is not recognized in Windows PowerShell

    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

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: GET-AXModel command is not recognized in Windows Power Shell Ax 2012

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,151 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,993 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans