dpetzinger
IS-IT--Management
When a user logs on to our network, I have a script that makes registry edits. However, the users are unprivelidged, so it has to be done with runas (via a privelidged user); here is where i'm running into problems.
if the following script is run as "jim" (unprivelidged) is logging in:
@runas /user:computer\administrator "c:\windows\regedit.exe /s c:\fix.reg"
unfortunately for me, that applies the registry edit to to "administrator", not "Jim".
I've tried the following as well, but it seems to do nothing:
@runas /user:computer\administrator "c:\windows\regedit.exe /s /R:c:\docume~1\jim\ntuser.dat c:\fix.reg"
this is all really easy in windows 98, but not so easy here.
thanks for any help anyone can offer.
-dave
p.s. don't worry about the password for administrator, it's loaded via javascript...