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
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-035
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
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-035 -
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
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
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
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions