Uses SQL WMI to find the Registry Root of each SQL Server instance on a computer.
Gets the registry root for all instances on localhost
Gets the registry root for all instances on server1
Get-DbaSqlRegistryRoot -ComputerName server1
This command was created by Chrissy LeMaire. You can find Chrissy on Twitter.