web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

powershell Import-Module does not import module

(0) ShareShare
ReportReport
Posted on by 194

Hello,

I try to import NavAdminTool.ps1 into powersell but I get the following error:

Import-Module : The specified module 'C:\Program Files (x86)\Microsoft Dynamics NAV\110\Service\NavAdminTool.ps1' was not loaded because no valid module file was found i
n any module directory.

Please help me with this issue!

Regards,

Galina

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    The folder should C:\Program Files, not C:\Program Files (x86)

    Try this 

    Import-Module "$env:ProgramFiles\Microsoft Dynamics NAV\110\Service\NavAdminTool.ps1"
  • Galina Georgieva Profile Picture
    194 on at

    Thank you.

    The problem is that I although I enter

    Import-Module "${env:ProgramFiles}\Microsoft Dynamics NAV\110\Service\NavAdminTool.ps1"

    I get the same error:

    Import-Module : The specified module 'C:\Program Files (x86)\Microsoft Dynamics NAV\110\Service\NavAdminTool.ps1' was not loaded because no valid module file was found in any module directory.

    Regards,

    Galina

  • Suggested answer
    Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    Is NAV Server installed on your machine, only client? if the NAV server is on another machine then you don't have those folders and you get that error.  You need to execute it where the service is installed.

  • Suggested answer
    Olister Rumao Profile Picture
    4,009 on at

    Hi,

    Firstly you need to check your Execution Policy.

    Also I had noticed that PowerShell modules file extension is .psm1

  • Suggested answer
    jcastro Profile Picture
    2,245 on at

    Besides what the others have said, can you check the module is not blocked by Windows? Right click it and check it's not blocked.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans