How to fix New-NAVWebServerInstance is not recognized Error

wolfulium
wolfulium Member Posts: 30
I am trying to set up a new web server instance.
I am using the command New-NAVWebServerInstance -blahblah -blah -etc
but the PS is telling me the following

a5g83w7x5l29.png

Best Answer

Answers

  • wolfulium
    wolfulium Member Posts: 30
    I do not see the admin shell or the NavAdminTools.
    The only thing in my nav folder is the RoleTailoredClient.

    Do these things usually reside on the server installation?
  • Slawek_Guzek
    Slawek_Guzek Member Posts: 1,692
    Yes if you selected the option "Install Administration Tool" during installation. It is basically a shortcut to the Powershell with a command line to import the NavAdminTool.ps1 module. It looks like this:

    C:\Windows\system32\WindowsPowerShell\v1.0\PowerShell.exe -NoExit -ExecutionPolicy RemoteSigned " & ' C:\Program Files\Microsoft Dynamics NAV\100\Service\NavAdminTool.ps1 ' "

    The shortcut lives in C:\ProgramData\Microsoft\Windows\Start Menu\Programs

    Create it manually, or can start a Powershell command line as an administrator, issue the import-module "C:\Program Files\Microsoft Dynamics NAV\100\Service\NavAdminTool.ps1" command, and you will have all cmdlets available

    if you don't have NavAdminTool.ps1 file then start setup and add it from here.
    Slawek Guzek - www.yitron.co.uk
    Business Central, MS SQL Server, Wherescape RED;
  • Piyush_Aga
    Piyush_Aga Member Posts: 1
    I am running powershell as administrator and still I am getting this error. Kindly please help me to resolve the issue. Thanks in advance.

    tf8qtorhciis.png
    5vmfyy1thlct.png


    Regards,
    Piyush Agrawal