Folks,
Need some assistance, I'm writing a login script to install a piece of
software on PCs when people login. The softrware requires me to add registry
change to each machine so I have call the "regedit /s" command using the
vbscript. The problem is my script only creates the folders in the registry
but does not add any registry keys. If I run the command directly from
command prompt it works. Below is an example of the vbscript and registry
file, if anyone can help me out on this problem, much appreaciated.
vbscript
Set wshShell = CreateObject("WScript.Shell")
wshShell.Run("RegEdit /s" & "c:\pcmon.reg")
registry file
[HKEY_LOCAL_MACHINE\SOFTWARE\PCwatch\pcmon]
"LogFileDir"="\\\\MGMT-WATCH\\public$\\logfiles"
"ProdVer"="Focus"
"TCPIPServer"="MGMT-WATCH"
"UDPServer"="MGMT-WATCH"
"ConfigServer"="MGMT-WATCH"
thanks,
Liam Mac