Author | Chrissy LeMaire (@cl), netnerds.net |
Availability | Windows, Linux, macOS |
Want to see the source code for this command? Check out Get-DbaRegistryRoot on GitHub.
Want to see the Bill Of Health for this command? Check out Get-DbaRegistryRoot.
Uses SQL WMI to find the Registry Root of each SQL Server instance on a computer
Uses SQL WMI to find the Registry Root of each SQL Server instance on a computer
Get-DbaRegistryRoot
[[-ComputerName] <DbaInstanceParameter[]>]
[[-Credential] <PSCredential>]
[-EnableException]
[<CommonParameters>]
PS C:\> Get-DbaRegistryRoot
Gets the registry root for all instances on localhost
PS C:\> Get-DbaRegistryRoot -ComputerName server1
Gets the registry root for all instances on server1
The target computer. This is not a SQL Server service, though if you pass a named SQL instance, it'll parse properly down to the computer name
Alias | |
Required | False |
Pipeline | true (ByValue) |
Default Value | $env:COMPUTERNAME |
Allows you to login to $ComputerName using alternative Windows credentials
Alias | |
Required | False |
Pipeline | false |
Default Value |
By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message.
This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables advanced scripting.
Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch.
Alias | |
Required | False |
Pipeline | false |
Default Value | False |