Export-NAVServerLicenseInformation

Exports license information from the Microsoft Dynamics NAV database.

Syntax

Export-NAVServerLicenseInformation
      [-Tenant <TenantId>]
      [-ServerInstance] <String>
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Use the Export-NAVServerLicenseInformation cmdlet to export license information from the Microsoft Dynamics NAV database.

If theMicrosoft Dynamics NAV Server account does not have access to the location where the global license file is stored, an error results. Check the Windows Event Log on the Microsoft Dynamics NAV Server computer to see what permissions are required.

Examples

EXAMPLE 1

Export-NAVServerLicenseInformation MyInstance

*************************
  THE LICENSE FILE INFO
*************************

This example exports license info to the console window.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ServerInstance

Specifies the name of a Dynamics NAV Server instance, for example, DynamicsNAV or myinstance. You can specify either the full name of an instance, such as MicrosoftDynamicsNavServer$myinstance or the short name such as myinstance.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Tenant

Specifies the ID of the tenant that the license is stored in, such as Tenant1. This parameter is required unless the specified service instance is not configured to run multiple tenants.

Type:TenantId
Aliases:Id
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String

You can pipe a string that contains a Microsoft Dynamics NAV Server instance name to the cmdlet.

Outputs

System.String

Returns license information as well-formatted text.