dbatools is a free PowerShell module with over 200 SQL Server administration, best practice and migration commands included.

Please note that documentation and command names may be out of date while we work furiously towards 1.0


Get-DbaSqlInstanceUserOption

The Get-DbaSqlInstanceUserOption command gets SQL Instance user options from the SMO object sqlserver.

Screenshots

dbatools-Get-DbaSqlInstanceUserOption

Examples

Returns SQL Instance user options on the local default SQL Server instance.

Get-DbaSqlInstanceUserOption -SqlInstance localhost

Returns SQL Instance user options on default instance on sql2 and sqlexpress instance on sql4.

Get-DbaSqlInstanceUserOption -SqlInstance sql2, sql4\sqlexpress

Returns SQL Instance user options on sql2 and sql4.

‘sql2′,’sql4’ | Get-DbaSqlInstanceUserOption

Author

This command was created by Klaas Vandenberghe. You can find Klaas on Twitter.

Get-Help

From PowerShell, execute Get-Help Get-DbaSqlInstanceUserOption -Detailed for more information on this function.

Source Code

Want to see the source code? View Get-DbaSqlInstanceUserOption.ps1 on GitHub
 

Related commands