|
I've been playing with Kix for about a year mainly for logon scripts and I've slowly been playing with other code to read and write to the registry. Mainly to help battle virus outbreaks.
I've been trying to write a script that will read a registry key, and if it exists copy down the symantec removal tool from the server and run it. I can do everything but the READVALUE will not read the string registry type, only the DWORD.
My script that does the read is as follows:
$VIRI = ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run" ,"drvddll.exe")
I test this by simulating the registry key, but the only data type I've been able to get work is the DWORD. Is there something I'm not seening in the command reference on the site or in the manual that I need to have to read string keys?
Thanks for any help in advance...
JTT
|