What did I did wrong? SID for AD user object is unique and won't change even when logging onto different machines. I found out that the script always returns the contents from HKEY_USERS instead of HKEY_CURRENT_USERS.
$strIPAddrTmp = '172.28.27.200' $strKeyIEConnections = 'Software Microsoft Windows CurrentVersion Internet Settings Connections ' $strRegType = ::CurrentUser $strRegKey = ::OpenRemoteBaseKey($strRegType, $strIPAddrTmp) $strRegKey = $strRegKey.OpenSubKey($strKeyIEConnections) I used the PS script above to try to read the contents of: HKCU::Software Microsoft Windows CurrentVersion Internet Settings Connections DefaultConnectionSettings I was just trying to check the IE proxy settings of a target remote machine.