Lesen HKEY_USERS und HKEY_CURRENT_USERS

$strIPAddrTmp = "172.28.27.200"
$strKeyIEConnections = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\"
$strRegType = [Microsoft.Win32.RegistryHive]::CurrentUser
$strRegKey  = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey($strRegType, $strIPAddrTmp)
$strRegKey  = $strRegKey.OpenSubKey($strKeyIEConnections)

Verwendet habe ich das PS-Skript vor, um zu versuchen, den Inhalt zu Lesen von:

HKCU::Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\DefaultConnectionSettings

Ich war gerade versucht zu überprüfen, die IE proxy-Einstellungen des Ziel-remote-Maschine.
Ich fand heraus, dass das Skript gibt immer den Inhalt von HKEY_USERS statt HKEY_CURRENT_USERS.
Was habe ich falsch gemacht?

InformationsquelleAutor John Lee | 2013-11-25
Schreibe einen Kommentar