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-DbaSqlRegistryRoot

Uses SQL WMI to find the Registry Root of each SQL Server instance on a computer.

Screenshots

dbatools - Get-DbaSqlRegistryRoot

Examples

Gets the registry root for all instances on localhost

Get-DbaSqlRegistryRoot

Gets the registry root for all instances on server1

Get-DbaSqlRegistryRoot -ComputerName server1

Author

This command was created by Chrissy LeMaire. You can find Chrissy on Twitter.

Get-Help

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

Source Code

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

Related commands