There seems to be a bug that disallows reading a local registry key using the machines IP address. Using the machines computer name works fine. This only seems to occur on Win2k Server SP4. The code below demonstrates the problem...If ran on a Win2k Server w/ SP4 you will not getting anything for the $test2 variable.
Code:
$test1 = ReadValue ("\\"+@WkSta+"\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion","ProductName")
$ip = join(split(@IPADDRESS0,' '),'')
$test2 = ReadValue ("\\"+$ip+"\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion","ProductName")
? "Read using "+@WkSta+" - "+$test1
? "Read using "+$ip+" - "+$test2
?
? "DONE"
get $
This problem occurs in both kix 4.22 and the private beta release of 4.5. So Im not so sure it's a Beta problem so to say...Just didnt know where else to post it.