Get-NAVApplication
Gets information about the application database that is mounted against the specified Business Central Server instance.
Syntax
Default (Default)
Get-NAVApplication
[-ServerInstance] <String>
[-Force]
[<CommonParameters>]
Description
Use the Get-NAVApplication cmdlet to get information about the application database that is mounted against the specified Business Central Server instance.
If no application is mounted, use the Mount-NAVApplication cmdlet to mount an application. The cmdlet returns 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 (11-0)'.
Examples
EXAMPLE 1
Get-NAVApplication -ServerInstance BC
This example returns information about the application database that is mounted against the BC server instance.
Parameters
-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 Business Central Server instance, for example, BC 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: | 0 |
Mandatory: | True |
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 pass the value of the ServerInstance parameter as a string to this cmdlet.
Outputs
System.Data.DataRow
The cmdlet returns the name of the database server and the name of the application database as a data row.