-
Notifications
You must be signed in to change notification settings - Fork 225
Install‑SqlDscServer
Executes an setup action using Microsoft SQL Server setup executable.
Install-SqlDscServer [-Install] [-AcceptLicensingTerms] -MediaPath <String> -AzureSubscriptionId <String>
-AzureResourceGroup <String> -AzureRegion <String> -AzureTenantId <String> -AzureServicePrincipal <String>
-AzureServicePrincipalSecret <SecureString> [-AzureArcProxy <String>] [-Timeout <UInt32>] [-Force]
[-WhatIf] [-Confirm] [<CommonParameters>]
Install-SqlDscServer [-Install] [-AcceptLicensingTerms] [-SuppressPrivacyStatementNotice]
[-IAcknowledgeEntCalLimits] -MediaPath <String> [-InstanceName <String>] [-Enu] [-UpdateEnabled]
[-UpdateSource <String>] [-Features <String[]>] -Role <String> [-InstallSharedDir <String>]
[-InstallSharedWowDir <String>] [-InstanceDir <String>] [-InstanceId <String>] [-PBEngSvcAccount <String>]
[-PBEngSvcPassword <SecureString>] [-PBEngSvcStartupType <String>] [-PBDMSSvcAccount <String>]
[-PBDMSSvcPassword <SecureString>] [-PBDMSSvcStartupType <String>] [-PBStartPortRange <UInt16>]
[-PBEndPortRange <UInt16>] [-PBScaleOut] [-ProductKey <String>] [-AgtSvcAccount <String>]
[-AgtSvcPassword <SecureString>] [-AgtSvcStartupType <String>] [-ASBackupDir <String>] [-ASCollation <String>]
[-ASConfigDir <String>] [-ASDataDir <String>] [-ASLogDir <String>] [-ASTempDir <String>]
[-ASServerMode <String>] [-ASSvcAccount <String>] [-ASSvcPassword <SecureString>] [-ASSvcStartupType <String>]
[-ASSysAdminAccounts <String[]>] [-ASProviderMSOLAP] [-FarmAccount <String>] [-FarmPassword <SecureString>]
[-Passphrase <SecureString>] [-FarmAdminiPort <UInt16>] [-BrowserSvcStartupType <String>] [-EnableRanU]
[-InstallSqlDataDir <String>] [-SqlBackupDir <String>] [-SecurityMode <String>] [-SAPwd <SecureString>]
[-SqlCollation <String>] [-AddCurrentUserAsSqlAdmin] [-SqlSvcAccount <String>]
[-SqlSvcPassword <SecureString>] [-SqlSvcStartupType <String>] [-SqlSysAdminAccounts <String[]>]
[-SqlTempDbDir <String>] [-SqlTempDbLogDir <String>] [-SqlTempDbFileCount <UInt16>]
[-SqlTempDbFileSize <UInt16>] [-SqlTempDbFileGrowth <UInt16>] [-SqlTempDbLogFileSize <UInt16>]
[-SqlTempDbLogFileGrowth <UInt16>] [-SqlUserDbDir <String>] [-SqlSvcInstantFileInit]
[-SqlUserDbLogDir <String>] [-SqlMaxDop <UInt16>] [-UseSqlRecommendedMemoryLimits] [-SqlMinMemory <UInt32>]
[-SqlMaxMemory <UInt32>] [-FileStreamLevel <UInt16>] [-FileStreamShareName <String>] [-ISSvcAccount <String>]
[-ISSvcPassword <SecureString>] [-ISSvcStartupType <String>] [-NpEnabled] [-TcpEnabled]
[-RsInstallMode <String>] [-RSSvcAccount <String>] [-RSSvcPassword <SecureString>]
[-RSSvcStartupType <String>] [-MPYCacheDirectory <String>] [-MRCacheDirectory <String>] [-SqlInstJava]
[-SqlJavaDir <String>] [-AzureSubscriptionId <String>] [-AzureResourceGroup <String>] [-AzureRegion <String>]
[-AzureTenantId <String>] [-AzureServicePrincipal <String>] [-AzureServicePrincipalSecret <SecureString>]
[-AzureArcProxy <String>] [-SkipRules <String[]>] [-ProductCoveredBySA] [-Timeout <UInt32>] [-Force]
[-WhatIf] [-Confirm] [<CommonParameters>]
Install-SqlDscServer [-Install] [-AcceptLicensingTerms] [-SuppressPrivacyStatementNotice]
[-IAcknowledgeEntCalLimits] -MediaPath <String> -InstanceName <String> [-Enu] [-UpdateEnabled]
[-UpdateSource <String>] -Features <String[]> [-InstallSharedDir <String>] [-InstallSharedWowDir <String>]
[-InstanceDir <String>] [-InstanceId <String>] [-PBEngSvcAccount <String>] [-PBEngSvcPassword <SecureString>]
[-PBEngSvcStartupType <String>] [-PBDMSSvcAccount <String>] [-PBDMSSvcPassword <SecureString>]
[-PBDMSSvcStartupType <String>] [-PBStartPortRange <UInt16>] [-PBEndPortRange <UInt16>] [-PBScaleOut]
[-ProductKey <String>] [-AgtSvcAccount <String>] [-AgtSvcPassword <SecureString>]
[-AgtSvcStartupType <String>] [-ASBackupDir <String>] [-ASCollation <String>] [-ASConfigDir <String>]
[-ASDataDir <String>] [-ASLogDir <String>] [-ASTempDir <String>] [-ASServerMode <String>]
[-ASSvcAccount <String>] [-ASSvcPassword <SecureString>] [-ASSvcStartupType <String>]
[-ASSysAdminAccounts <String[]>] [-ASProviderMSOLAP] [-BrowserSvcStartupType <String>] [-EnableRanU]
[-InstallSqlDataDir <String>] [-SqlBackupDir <String>] [-SecurityMode <String>] [-SAPwd <SecureString>]
[-SqlCollation <String>] [-SqlSvcAccount <String>] [-SqlSvcPassword <SecureString>]
[-SqlSvcStartupType <String>] [-SqlSysAdminAccounts <String[]>] [-SqlTempDbDir <String>]
[-SqlTempDbLogDir <String>] [-SqlTempDbFileCount <UInt16>] [-SqlTempDbFileSize <UInt16>]
[-SqlTempDbFileGrowth <UInt16>] [-SqlTempDbLogFileSize <UInt16>] [-SqlTempDbLogFileGrowth <UInt16>]
[-SqlUserDbDir <String>] [-SqlSvcInstantFileInit] [-SqlUserDbLogDir <String>] [-SqlMaxDop <UInt16>]
[-UseSqlRecommendedMemoryLimits] [-SqlMinMemory <UInt32>] [-SqlMaxMemory <UInt32>] [-FileStreamLevel <UInt16>]
[-FileStreamShareName <String>] [-ISSvcAccount <String>] [-ISSvcPassword <SecureString>]
[-ISSvcStartupType <String>] [-NpEnabled] [-TcpEnabled] [-RsInstallMode <String>] [-RSSvcAccount <String>]
[-RSSvcPassword <SecureString>] [-RSSvcStartupType <String>] [-MPYCacheDirectory <String>]
[-MRCacheDirectory <String>] [-SqlInstJava] [-SqlJavaDir <String>] [-AzureSubscriptionId <String>]
[-AzureResourceGroup <String>] [-AzureRegion <String>] [-AzureTenantId <String>]
[-AzureServicePrincipal <String>] [-AzureServicePrincipalSecret <SecureString>] [-AzureArcProxy <String>]
[-SkipRules <String[]>] [-ProductCoveredBySA] [-Timeout <UInt32>] [-Force]
[-WhatIf] [-Confirm] [<CommonParameters>]
Install-SqlDscServer [-PrepareImage] [-AcceptLicensingTerms] [-IAcknowledgeEntCalLimits] -MediaPath <String>
[-Enu] [-UpdateEnabled] [-UpdateSource <String>] -Features <String[]> [-InstallSharedDir <String>]
[-InstanceDir <String>] -InstanceId <String> [-PBEngSvcAccount <String>] [-PBEngSvcPassword <SecureString>]
[-PBEngSvcStartupType <String>] [-PBStartPortRange <UInt16>] [-PBEndPortRange <UInt16>] [-PBScaleOut]
[-Timeout <UInt32>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Install-SqlDscServer [-Upgrade] [-AcceptLicensingTerms] -MediaPath <String> -InstanceName <String> [-Enu]
[-UpdateEnabled] [-UpdateSource <String>] [-InstanceDir <String>] [-InstanceId <String>]
[-ProductKey <String>] [-BrowserSvcStartupType <String>] [-FTUpgradeOption <String>] [-ISSvcAccount <String>]
[-ISSvcPassword <SecureString>] [-ISSvcStartupType <String>] [-AllowUpgradeForSSRSSharePointMode]
[-FailoverClusterRollOwnership <UInt16>] [-ProductCoveredBySA] [-Timeout <UInt32>] [-Force]
[-WhatIf] [-Confirm] [<CommonParameters>]
Install-SqlDscServer [-EditionUpgrade] [-AcceptLicensingTerms] -MediaPath <String> -InstanceName <String>
-ProductKey <String> [-SkipRules <String[]>] [-ProductCoveredBySA] [-Timeout <UInt32>] [-Force]
[-WhatIf] [-Confirm] [<CommonParameters>]
Install-SqlDscServer [-InstallFailoverCluster] [-AcceptLicensingTerms] [-IAcknowledgeEntCalLimits]
-MediaPath <String> -InstanceName <String> [-Enu] [-UpdateEnabled] [-UpdateSource <String>]
-Features <String[]> [-InstallSharedDir <String>] [-InstallSharedWowDir <String>] [-InstanceDir <String>]
[-InstanceId <String>] [-PBEngSvcAccount <String>] [-PBEngSvcPassword <SecureString>]
[-PBEngSvcStartupType <String>] [-PBStartPortRange <UInt16>] [-PBEndPortRange <UInt16>] [-PBScaleOut]
[-ProductKey <String>] [-AgtSvcAccount <String>] [-AgtSvcPassword <SecureString>] [-ASBackupDir <String>]
[-ASCollation <String>] [-ASConfigDir <String>] [-ASDataDir <String>] [-ASLogDir <String>]
[-ASTempDir <String>] [-ASServerMode <String>] [-ASSvcAccount <String>] [-ASSvcPassword <SecureString>]
[-ASSvcStartupType <String>] [-ASSysAdminAccounts <String[]>] [-ASProviderMSOLAP] -InstallSqlDataDir <String>
[-SqlBackupDir <String>] [-SecurityMode <String>] [-SAPwd <SecureString>] [-SqlCollation <String>]
[-SqlSvcAccount <String>] [-SqlSvcPassword <SecureString>] [-SqlSvcStartupType <String>]
-SqlSysAdminAccounts <String[]> [-SqlTempDbDir <String>] [-SqlTempDbLogDir <String>]
[-SqlTempDbFileCount <UInt16>] [-SqlTempDbFileSize <UInt16>] [-SqlTempDbFileGrowth <UInt16>]
[-SqlTempDbLogFileSize <UInt16>] [-SqlTempDbLogFileGrowth <UInt16>] [-SqlUserDbDir <String>]
[-SqlUserDbLogDir <String>] [-FileStreamLevel <UInt16>] [-FileStreamShareName <String>]
[-ISSvcAccount <String>] [-ISSvcPassword <SecureString>] [-ISSvcStartupType <String>]
[-RsInstallMode <String>] [-RSSvcAccount <String>] [-RSSvcPassword <SecureString>]
[-RSSvcStartupType <String>] [-FailoverClusterGroup <String>] [-FailoverClusterDisks <String[]>]
-FailoverClusterNetworkName <String> -FailoverClusterIPAddresses <String[]> [-SkipRules <String[]>]
[-ProductCoveredBySA] [-Timeout <UInt32>] [-Force] [-WhatIf] [-Confirm]
[<CommonParameters>]
Install-SqlDscServer [-PrepareFailoverCluster] [-AcceptLicensingTerms] [-IAcknowledgeEntCalLimits]
-MediaPath <String> -InstanceName <String> [-Enu] [-UpdateEnabled] [-UpdateSource <String>]
-Features <String[]> [-InstallSharedDir <String>] [-InstallSharedWowDir <String>] [-InstanceDir <String>]
[-InstanceId <String>] [-PBEngSvcAccount <String>] [-PBEngSvcPassword <SecureString>]
[-PBEngSvcStartupType <String>] [-PBStartPortRange <UInt16>] [-PBEndPortRange <UInt16>] [-PBScaleOut]
[-ProductKey <String>] [-AgtSvcAccount <String>] [-AgtSvcPassword <SecureString>] [-ASSvcAccount <String>]
[-ASSvcPassword <SecureString>] [-SqlSvcAccount <String>] [-SqlSvcPassword <SecureString>]
[-FileStreamLevel <UInt16>] [-FileStreamShareName <String>] [-ISSvcAccount <String>]
[-ISSvcPassword <SecureString>] [-ISSvcStartupType <String>] [-RsInstallMode <String>]
[-RSSvcAccount <String>] [-RSSvcPassword <SecureString>] [-RSSvcStartupType <String>] [-ProductCoveredBySA]
[-Timeout <UInt32>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Install-SqlDscServer -ConfigurationFile <String> -MediaPath <String> [-AgtSvcPassword <SecureString>]
[-ASSvcPassword <SecureString>] [-SqlSvcPassword <SecureString>] [-ISSvcPassword <SecureString>]
[-RSSvcPassword <SecureString>] [-Timeout <UInt32>] [-Force] [-WhatIf]
[-Confirm] [<CommonParameters>]
Executes an setup action using Microsoft SQL Server setup executable.
See the link in the commands help for information on each parameter. The link points to SQL Server command line setup documentation.
Install-SqlDscServer -Install -AcceptLicensingTerms -InstanceName 'MyInstance' -Features 'SQLENGINE' -SqlSysAdminAccounts @('MyAdminAccount') -MediaPath 'E:\'
Installs the database engine for the named instance MyInstance.
Install-SqlDscServer -Install -AcceptLicensingTerms -InstanceName 'MyInstance' -Features 'SQLENGINE','ARC' -SqlSysAdminAccounts @('MyAdminAccount') -MediaPath 'E:\' -AzureSubscriptionId 'MySubscriptionId' -AzureResourceGroup 'MyRG' -AzureRegion 'West-US' -AzureTenantId 'MyTenantId' -AzureServicePrincipal 'MyPrincipalName' -AzureServicePrincipalSecret ('MySecret' | ConvertTo-SecureString -AsPlainText -Force)
Installs the database engine for the named instance MyInstance and onboard the server to Azure Arc.
Install-SqlDscServer -Install -AcceptLicensingTerms -MediaPath 'E:\' -AzureSubscriptionId 'MySubscriptionId' -AzureResourceGroup 'MyRG' -AzureRegion 'West-US' -AzureTenantId 'MyTenantId' -AzureServicePrincipal 'MyPrincipalName' -AzureServicePrincipalSecret ('MySecret' | ConvertTo-SecureString -AsPlainText -Force)
Installs the Azure Arc Agent on the server.
Install-SqlDscServer -ConfigurationFile 'MySqlConfig.ini' -MediaPath 'E:\'
Installs SQL Server using the configuration file 'MySqlConfig.ini'.
Install-SqlDscServer -PrepareImage -AcceptLicensingTerms -Features 'SQLENGINE' -InstanceId 'MyInstance' -MediaPath 'E:\'
Prepares the server for using the database engine for an instance named 'MyInstance'.
Install-SqlDscServer -Upgrade -AcceptLicensingTerms -InstanceName 'MyInstance' -MediaPath 'E:\'
Upgrades the instance 'MyInstance' with the SQL Server version that is provided by the media path.
Install-SqlDscServer -EditionUpgrade -AcceptLicensingTerms -ProductKey 'NewEditionProductKey' -InstanceName 'MyInstance' -MediaPath 'E:\'
Upgrades the instance 'MyInstance' with the SQL Server edition that is provided by the media path.
Install-SqlDscServer -InstallFailoverCluster -AcceptLicensingTerms -InstanceName 'MyInstance' -Features 'SQLENGINE' -InstallSqlDataDir 'D:\MSSQL\Data' -SqlSysAdminAccounts @('MyAdminAccount') -FailoverClusterNetworkName 'TestCluster01A' -FailoverClusterIPAddresses 'IPv4;192.168.0.46;ClusterNetwork1;255.255.255.0' -MediaPath 'E:\'
Installs the database engine in a failover cluster with the instance name 'MyInstance'.
Install-SqlDscServer -PrepareFailoverCluster -AcceptLicensingTerms -InstanceName 'MyInstance' -Features 'SQLENGINE' -MediaPath 'E:\'
Prepares to installs the database engine in a failover cluster with the instance name 'MyInstance'.
Required parameter to be able to run unattended install. By specifying this parameter you acknowledge the acceptance all license terms and notices for the specified features, the terms and notices that the Microsoft SQL Server setup executable normally ask for.
Type: SwitchParameter
Parameter Sets: InstallAzureArcAgent, InstallRole, Install, PrepareImage, Upgrade, EditionUpgrade, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: InstallRole
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SecureString
Parameter Sets: InstallRole, Install, InstallFailoverCluster, PrepareFailoverCluster, UsingConfigurationFile
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: Upgrade
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SecureString
Parameter Sets: InstallRole, Install, InstallFailoverCluster, PrepareFailoverCluster, UsingConfigurationFile
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String[]
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallAzureArcAgent, InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallAzureArcAgent
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallAzureArcAgent
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallAzureArcAgent
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SecureString
Parameter Sets: InstallAzureArcAgent
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: SecureString
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallAzureArcAgent
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallAzureArcAgent
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, Upgrade
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies an configuration file to use during SQL Server setup. This parameter cannot be used together with any of the setup actions, but instead it is expected that the configuration file specifies what setup action to run.
Type: String
Parameter Sets: UsingConfigurationFile
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the setup action EditionUpgrade.
Type: SwitchParameter
Parameter Sets: EditionUpgrade
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: InstallRole, Install, PrepareImage, Upgrade, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String[]
Parameter Sets: InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String[]
Parameter Sets: InstallFailoverCluster
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallFailoverCluster
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: UInt16
Parameter Sets: Upgrade
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: UInt16
Parameter Sets: InstallRole
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SecureString
Parameter Sets: InstallRole
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String[]
Parameter Sets: InstallRole
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String[]
Parameter Sets: Install, PrepareImage, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: UInt16
Parameter Sets: InstallRole, Install, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
If specified the command will not ask for confirmation. Same as if Confirm:$false is used.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: Upgrade
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: InstallRole, Install, PrepareImage, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Specifies the setup action Install.
Type: SwitchParameter
Parameter Sets: InstallAzureArcAgent, InstallRole, Install
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Specifies the setup action InstallFailoverCluster.
Type: SwitchParameter
Parameter Sets: InstallFailoverCluster
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, PrepareImage, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: InstallFailoverCluster
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, PrepareImage, Upgrade, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, Upgrade, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: PrepareImage
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: Install, Upgrade, EditionUpgrade, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, Upgrade, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SecureString
Parameter Sets: InstallRole, Install, Upgrade, InstallFailoverCluster, PrepareFailoverCluster, UsingConfigurationFile
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, Upgrade, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the path where to find the SQL Server installation media. On this path the SQL Server setup executable must be found.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SecureString
Parameter Sets: InstallRole
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SecureString
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: UInt16
Parameter Sets: InstallRole, Install, PrepareImage, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, PrepareImage, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SecureString
Parameter Sets: InstallRole, Install, PrepareImage, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, PrepareImage, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: InstallRole, Install, PrepareImage, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: UInt16
Parameter Sets: InstallRole, Install, PrepareImage, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
Specifies the setup action PrepareFailoverCluster.
Type: SwitchParameter
Parameter Sets: PrepareFailoverCluster
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Specifies the setup action PrepareImage.
Type: SwitchParameter
Parameter Sets: PrepareImage
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: InstallRole, Install, Upgrade, EditionUpgrade, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, Upgrade, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: EditionUpgrade
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SecureString
Parameter Sets: InstallRole, Install, InstallFailoverCluster, PrepareFailoverCluster, UsingConfigurationFile
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SecureString
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String[]
Parameter Sets: InstallRole, Install, EditionUpgrade, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: UInt16
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: UInt32
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: UInt32
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SecureString
Parameter Sets: InstallRole, Install, InstallFailoverCluster, PrepareFailoverCluster, UsingConfigurationFile
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String[]
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String[]
Parameter Sets: InstallFailoverCluster
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: UInt16
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: UInt16
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: UInt16
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: UInt16
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: UInt16
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, InstallFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Specifies how long to wait for the setup process to finish.
Default value
is 7200
seconds (2 hours).
If the setup process does not finish before
this time, an exception will be thrown.
Type: UInt32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 7200
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: InstallRole, Install, PrepareImage, Upgrade, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: String
Parameter Sets: InstallRole, Install, PrepareImage, Upgrade, InstallFailoverCluster, PrepareFailoverCluster
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the setup action Upgrade.
Type: SwitchParameter
Parameter Sets: Upgrade
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
See the notes section for more information.
Type: SwitchParameter
Parameter Sets: InstallRole, Install
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
The parameters are intentionally not described since it would take a lot of effort to keep them up to date. Instead there is a link that points to the SQL Server command line setup documentation which will stay relevant.
- Add-SqlDscNode
- Add-SqlDscTraceFlag
- Complete-SqlDscFailoverCluster
- Complete-SqlDscImage
- Connect-SqlDscDatabaseEngine
- ConvertFrom-SqlDscDatabasePermission
- ConvertFrom-SqlDscServerPermission
- ConvertTo-SqlDscDatabasePermission
- ConvertTo-SqlDscServerPermission
- Disable-SqlDscAudit
- Disconnect-SqlDscDatabaseEngine
- Enable-SqlDscAudit
- Get-SqlDscAudit
- Get-SqlDscConfigurationOption
- Get-SqlDscDatabasePermission
- Get-SqlDscManagedComputer
- Get-SqlDscManagedComputerService
- Get-SqlDscPreferredModule
- Get-SqlDscServerPermission
- Get-SqlDscStartupParameter
- Get-SqlDscTraceFlag
- Import-SqlDscPreferredModule
- Initialize-SqlDscRebuildDatabase
- Install-SqlDscServer
- Invoke-SqlDscQuery
- New-SqlDscAudit
- Remove-SqlDscAudit
- Remove-SqlDscNode
- Remove-SqlDscTraceFlag
- Repair-SqlDscServer
- Save-SqlDscSqlServerMediaFile
- Set-SqlDscAudit
- Set-SqlDscDatabasePermission
- Set-SqlDscServerPermission
- Set-SqlDscStartupParameter
- Set-SqlDscTraceFlag
- Test-SqlDscIsDatabasePrincipal
- Test-SqlDscIsLogin
- Test-SqlDscIsSupportedFeature
- Uninstall-SqlDscServer
- SqlAG
- SqlAGDatabase
- SqlAgentAlert
- SqlAgentFailsafe
- SqlAgentOperator
- SqlAGListener
- SqlAGReplica
- SqlAlias
- SqlAlwaysOnService
- SqlAudit
- SqlConfiguration
- SqlDatabase
- SqlDatabaseDefaultLocation
- SqlDatabaseMail
- SqlDatabaseObjectPermission
- SqlDatabasePermission
- SqlDatabaseRole
- SqlDatabaseUser
- SqlEndpoint
- SqlEndpointPermission
- SqlLogin
- SqlMaxDop
- SqlMemory
- SqlPermission
- SqlProtocol
- SqlProtocolTcpIp
- SqlReplication
- SqlRole
- SqlRS
- SqlRSSetup
- SqlScript
- SqlScriptQuery
- SqlSecureConnection
- SqlServiceAccount
- SqlSetup
- SqlTraceFlag
- SqlWaitForAG
- SqlWindowsFirewall