Get-NAVServerInstance
Gets service details for the specified Dynamics NAV Server instance.
Syntax
Default (Default)
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.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Force
Forces the command to run without asking for user confirmation.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | 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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
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