Get-NAVServerInstance
Gets service details for the specified Dynamics NAV Server instance.
Syntax
Get-NAVServerInstance
[[-ServerInstance] <String>]
[-AsXml]
[-Force]
[<CommonParameters>]
Description
Use the Get-NAVServerInstance cmdlet to obtain service details for the specified Microsoft Dynamics NAV Server instance.
If no Microsoft Dynamics NAV Server instance is specified, then the cmdlet obtains service details for all Microsoft Dynamics NAV Server instances on the server computer. The service details include the name of the instance (for example, MicrosoftDynamicsNavServer$DynamicsNAV), the display name (for example, Microsoft Dynamics NAV Server [DynamicsNAV]), the state of the instance (Running or Stopped), the Service Account (that is, the account that the Microsoft Dynamics NAV Server uses for its credentials), the Microsoft Dynamics NAV Server version (such as 7.0.33571.0), and whether the instance is the default Microsoft Dynamics NAV Server instance.
Examples
EXAMPLE 1
Get-NavServerInstance MyInstance
Name : MicrosoftDynamicsNavServer$MyInstance
DisplayName : Microsoft Dynamics NAV Server [MyInstance]
State : Running
ServiceAccount : NT AUTHORITY\NETWORK SERVICE
Version : 7.1.33544.0
Default : False
This example returns status information for the MyInstance Microsoft Dynamics NAV Server instance.
Parameters
-AsXml
Formats the cmdlet output as an XML document.
Type: | SwitchParameter |
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: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
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.Xml.XPathNodeList
Returns the Microsoft Dynamics NAV Server instances as well-formatted text.
System.Xml.XmlDocument
If you use the AsXml parameter, then the cmdlet returns the Microsoft Dynamics NAV Server instances as an XML document