Condividi tramite


Microsoft Dynamics NAV Windows PowerShell Cmdlets

Windows PowerShell cmdlets for Server Administration are available with Microsoft Dynamics NAV 2013. The cmdlets are implemented in Windows PowerShell 2.0. PowerShell 2.0 is included with Windows Server 2008 R2 and Windows 7. For other versions of Windows supported for Microsoft Dynamics NAV 2013, you can install it as part of the Windows Management Framework.

To start a Windows PowerShell session that includes the Server Administration cmdlets, on the Start menu, choose All Programs, and then choose Microsoft Dynamics NAV 2013 Administration Shell. This opens a Windows PowerShell prompt.

To see the cmdlets that are available for administering Microsoft Dynamics NAV, type the following at the Windows PowerShell prompt.

Get-Command *NAVServer*

To get Help about syntax and options for a specific cmdlet, type the following cmdlet.

Get-Help <cmd name>

For example, to get Help about the Get-NAVServerInstance cmdlet, type the following.

Get-Help Get-NAVServerInstance

For more information about Microsoft Dynamics NAV Administration Shell cmdlets, see Administration Cmdlets for Microsoft Dynamics NAV.

For more information about Windows PowerShell, see Windows PowerShell Getting Started Guide.