Get-sqmServerSetting
Examples
# Read BackupDirectory from the local server
# Read BackupDirectory from the local server $backupPath = Get-sqmServerSetting -Name "BackupDirectory"
# Show all properties
# Show all properties Get-sqmServerSetting -All
# All properties from a remote instance with credentials
# All properties from a remote instance with credentials $cred = Get-Credential Get-sqmServerSetting -SqlInstance "SQL01" -SqlCredential $cred -All