Share via


Mount-NAVApplication

Mounts the Microsoft Dynamics NAV application against the specified server instance.

Syntax

Default (Default)

Mount-NAVApplication
    [-DatabaseServer <String>]
    [-DatabaseInstance <DatabaseInstance>]
    -DatabaseName <String>
    [-DatabaseCredentials <PSCredential>]
    [-DoNotSaveConfiguration]
    [-ServerInstance] <String>
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Use the Mount-NAVApplication cmdlet to mount a Microsoft Dynamics NAV database that contains the application tables against a Microsoft Dynamics NAV Server instance. You can only mount one Microsoft Dynamics NAV application at a time.

The database can be a dedicated application database, or a database that contains all Microsoft Dynamics NAV tables.

Examples

EXAMPLE 1

Mount-NAVApplication DynamicsNAV -DatabaseServer dbserver1 -DatabaseName 'NAV App'

This example mounts the Microsoft Dynamics NAV application on the DynamicsNAV server instance. The application is contained in the NAV App database, which is hosted on the dbserver1 database server.

EXAMPLE 2

Mount-NAVApplication DynamicsNAV -DatabaseServer dbserver1 -DatabaseName 'NAV App' -DatabaseCredentials (Get-Credential)

This example mounts the Microsoft Dynamics NAV application on the DynamicsNAV server instance and configures the Microsoft Dynamics NAV Server instance to use SQL authentication with the application database. The database credentials (user name and password) are provided in a dialog box that results from the call to the Get-Credential cmdlet.

Parameters

-Confirm

Prompts you for confirmation before executing the command.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DatabaseCredentials

The user name and password of the login account that the Microsoft Dynamics NAV Server instance will use to connect to the Microsoft Dynamics NAV database in SQL Server. Setting parameter is configures the Microsoft Dynamics NAV Server instance to use SQL Server Authentication instead of Windows Authentication on the connection to the application database. The login account must be a member of the db_owner role on the database.

Parameter properties

Type:PSCredential
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:True
Value from remaining arguments:False

-DatabaseInstance

Specifies the name of the SQL Server instance that hosts the database. You can also specify the instance in the DatabaseServer parameter, such as like MyServer\MyInstance.

Parameter properties

Type:DatabaseInstance
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:True
Value from remaining arguments:False

-DatabaseName

Specifies the name of the application database that you want to mount against the Microsoft Dynamics NAV Server instance, such as 'NAV App'.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-DatabaseServer

Specifies the name of the database server that hosts the application database that you want to mount against the Microsoft Dynamics NAV Server instance.

Parameter properties

Type:String
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:True
Value from remaining arguments:False

-DoNotSaveConfiguration

Specifies if the configuration must not be saved when the cmdlet has completed the task. If the parameter is not set, the configuration settings are automatically saved.

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:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-WhatIf

Describes what would happen if you executed the command without actually executing the command.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
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 the value of the ServerInstance parameter as a string to this cmdlet.

Outputs

None