Running these scripts didn't help me.
Import-Module "C:\Program Files\Microsoft Dynamics NAV\100\Service\NavAdminTool.ps1"
Import-Module "C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client\NavModelTools.ps1"
We currently have both NAV2009 and NAV2017.
NAV2009 is on Prem but being replaced by NAV2017 in hosted remotely be a 3rd party company.
The server has the NAVAdminTool.ps1 but not the NAVModelTools.ps1 located at \\RemoteServer\c$\Program Files\Microsoft Dynamics NAV\100\Service\NAVAdminTool.ps1
Locally, NAV2017 is installed at C:\NAV201764BIT\RoleTailored Client\ .
There are no *.ps1 in this whole directory on the C Drive, how do I get the registry to look at the powershell scripts?
How can I import it from a remote server?
Can I copy the NavAdminTool.ps1 file and paste it on My C Drive and import the module there?
I did try this but received the following error message:
"
Welcome to the Server Admin Tool Shell!
For a complete list of Server cmdlets type
Get-Command -Module Microsoft.Dynamics.Nav.Management, Microsoft.Dynamics.Nav.Apps.Management
Get-ItemProperty : Cannot find path 'HKLM:\SOFTWARE\Microsoft\Microsoft Dynamics NAV\100\Service' because it does not exist.
At C:\Program Files (x86)\Microsoft Dynamics NAV\100\Service\NavAdminTool.ps1:17 char:32
+ ... $snapInAssembly = Join-Path (Get-ItemProperty -path $nstPath).Path " ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (HKLM:\SOFTWARE\...NAV\100\Service:String) [Get-ItemProperty], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyCommand
Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files (x86)\Microsoft Dynamics NAV\100\Service\NavAdminTool.ps1:17 char:31
+ ... InAssembly = Join-Path (Get-ItemProperty -path $nstPath).Path "\$snap ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand
Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files (x86)\Microsoft Dynamics NAV\100\Service\NavAdminTool.ps1:18 char:18
+ if(!(Test-Path $snapInAssembly)) { $snapInAssembly = Join-Path (Get ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCommand
Import-Module : Cannot bind argument to parameter 'Name' because it is null.
At C:\Program Files (x86)\Microsoft Dynamics NAV\100\Service\NavAdminTool.ps1:21 char:17
+ Import-Module $snapInAssembly -ErrorVariable errorVariable -ErrorAc ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Import-Module], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ImportModuleCommand
Get-ItemProperty : Cannot find path 'HKLM:\SOFTWARE\Microsoft\Microsoft Dynamics NAV\100\Service' because it does not exist.
At C:\Program Files (x86)\Microsoft Dynamics NAV\100\Service\NavAdminTool.ps1:17 char:32
+ ... $snapInAssembly = Join-Path (Get-ItemProperty -path $nstPath).Path " ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (HKLM:\SOFTWARE\...NAV\100\Service:String) [Get-ItemProperty], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyCommand
Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files (x86)\Microsoft Dynamics NAV\100\Service\NavAdminTool.ps1:17 char:31
+ ... InAssembly = Join-Path (Get-ItemProperty -path $nstPath).Path "\$snap ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Join-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCommand
Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files (x86)\Microsoft Dynamics NAV\100\Service\NavAdminTool.ps1:18 char:18
+ if(!(Test-Path $snapInAssembly)) { $snapInAssembly = Join-Path (Get ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCommand
Import-Module : Cannot bind argument to parameter 'Name' because it is null.
At C:\Program Files (x86)\Microsoft Dynamics NAV\100\Service\NavAdminTool.ps1:21 char:17
+ Import-Module $snapInAssembly -ErrorVariable errorVariable -ErrorAc ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Import-Module], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ImportModuleCommand
"
Thanks in advance