PS C:\\> $key = [Microsoft.Win32.Registry]::LocalMachine
PS C:\\> $key.GetSubKeyNames() HARDWARE SAM SECURITY SOFTWARE SYSTEM
PS C:\\> $subKey = $key.OpenSubKey("SOFTWARE\\\\Microsoft\\\\ADs\\\\Provide rs")
PS C:\\> $subKey.GetSubKeyNames() IIS LDAP NDS NWCOMPAT WinNT