How to fix New-NAVWebServerInstance is not recognized Error
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

I am using the command New-NAVWebServerInstance -blahblah -blah -etc
but the PS is telling me the following

0
Best Answer
-
Use the Administration shell, not the Development Shell as you have.
If you want/need to use Development shell you need to use import-module command and pass the full path to the NavAdminTool.ps1 module (it usually lives in c:\program files\Microsoft Dynamics NAV\<version>\Service\ )
SlawekSlawek Guzek - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;5
Answers
-
Use the Administration shell, not the Development Shell as you have.
If you want/need to use Development shell you need to use import-module command and pass the full path to the NavAdminTool.ps1 module (it usually lives in c:\program files\Microsoft Dynamics NAV\<version>\Service\ )
SlawekSlawek Guzek - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;5 -
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?0 -
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;0 -
I am running powershell as administrator and still I am getting this error. Kindly please help me to resolve the issue. Thanks in advance.


Regards,
Piyush Agrawal0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
