Get-NAVApplication

Get-NAVApplication

Gets information about the application database that is mounted against the specified Microsoft Dynamics NAV Server instance.

Syntax

Parameter Set: __AllParameterSets
Get-NAVApplication [-ServerInstance] <String> [-Force] [ <CommonParameters>]

Detailed Description

Use the Get-NAVApplication cmdlet to get information about the application database that is mounted against the specified Microsoft Dynamics NAV Server instance. If no application is mounted, use the Mount-NAVApplication cmdlet to mount an application. The cmdlet returs the name of the database server and the name of the application database.

If you have not exported the application tables to a dedicated application database, the Get-NAVApplication cmdlet returns the database that contains the application tables, such as 'Demo Database NAV (8-0)'.

Parameters

-Force

Forces the command to run without asking for user confirmation.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ServerInstance<String>

Specifies the Microsoft Dynamics NAV Server instance that you want to get information about, such as DynamicsNAV90. You can specify either the fully qualified name, such as 'MyServer$DynamicsNAV90', or the short name, such as 'DynamicsNAV90'.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • System.String

    You can pass the value of the ServerInstance parameter as a string to this cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • System.Data.DataRow

    The cmdlet returns the name of the database server and the name of the application database as a data row.

Examples

--------------------------EXAMPLE 1--------------------------

Description

-----------

This example returns information about the application database that is mounted against the DynamicsNAV90 server instance.

PS C:\> Get-NAVApplication -ServerInstance DynamicsNAV90
Database server                                             Database name

---------------                                             -------------

MyServer\NAVDEMO                                            NAV App