21. August 2018 13:15
Import-Module (Join-Path ${env:ProgramFiles(x86)} '\Microsoft Dynamics NAV\110\RoleTailored Client\NAVWebClientManagement.psm1')
Import-Module (Join-Path ${env:ProgramFiles(x86)} '\Microsoft Dynamics NAV\110\RoleTailored Client\Microsoft.Dynamics.Nav.Management.dll') -NoClobber
Get-NavCompany DYNAMICSNAV110
Get-NAVCompany -ServerInstance NAV18SERVER$DYNAMICSNAV110
21. August 2018 14:50
21. August 2018 15:24
elTorito hat geschrieben:auf mein Client/Dev Rechner sollte es die NAV Development Shell geben, gibt es nicht, was habe ich vergessen zu installieren?
Import-Module "${env:ProgramFiles(x86)}\Microsoft Dynamics NAV\110\RoleTailored Client\Microsoft.Dynamics.Nav.Model.Tools.psd1" -WarningAction SilentlyContinue | out-null
21. August 2018 15:49
21. August 2018 17:24
Gibt also ein Unterschiede zwischen den PS Scripten auf den Server und jene welche in "Dev Shell" auf den Client zur Verfügung stehen sollten?
22. August 2018 10:15
Get-AppInfo -ServerInstance NAV18SERVER$NAVInstanzname
22. August 2018 10:35
$PSServerSession = New-PSSession NAV18SERVER
Invoke-Command -Session $PSServerSession -ScriptBlock {
Import-Module 'C:\Program Files (x86)\Microsoft Dynamics NAV\110\RoleTailored Client\Microsoft.Dynamics.Nav.Model.Tools.psd1' -WarningAction SilentlyContinue | out-null
Import-Module 'C:\Program Files\Microsoft Dynamics NAV\110\Service\NavAdminTool.ps1' -WarningAction SilentlyContinue | out-null
Import-Module 'C:\Program Files (x86)\Microsoft Dynamics NAV\110\RoleTailored Client\Microsoft.Dynamics.Nav.Apps.Tools.psd1' -WarningAction SilentlyContinue | out-null
}
$Company = Invoke-Command -Session $PSServerSession -ScriptBlock ${Function:Get-NAVCompany} -ArgumentList DYNAMICSNAV110
22. August 2018 10:56