Public/Set-NavCommonParameters.ps1

# Define database name
#$NavDatabase = 'Cronus W1 '+$Role
$NavDatabase = $NavDefaultDatabase
$DatabaseInstanceFolder = 'MSSQL12.MSSQLSERVER'

# Define instance name
#$NavInstance = 'DynamicsNAV'+$Role
$NavInstance = $NavDefaultInstance

# Define instance name in long format (used in service name)
$NavInstanceLongName = 'MicrosoftDynamicsNavServer$'+$NavInstance

# Define Demo database backup file
$DemoBackup = "C:\ProgramData\Microsoft\Microsoft Dynamics NAV\$NavVersionCode\Database\$NavDatabase.bak"

# Define Demo database destination
$DestinationPath = "C:\Program Files\Microsoft SQL Server\$DatabaseInstanceFolder\MSSQL\DATA"

$CompanyName = $NavDefaultCompanyName

$DatabaseInstance = ""

if ($StartingPort) {
    $port5 = $StartingPort
} else {
    $port5 = 7045
}
$port6 = $port5 + 1
$port7 = $port6 + 1
$port8 = $port7 + 1