Jump to content

Recommended Posts

Posted

I have the following line in a script:

RunAs("username", "domain", "password", 0, "REGEDIT /S @ScriptDir \prefs.reg")

Regedit is not importing the .reg file into the registry. If I modify the script to use an absolute path to the .reg file regedit imports the .reg file. I need to get the script to work without defining and absolute path. Thanks

Posted (edited)

Try... (untested)

RunAs("username", "domain", "password", 0, "REGEDIT " & "/S" & @ScriptDir & " \prefs.reg")

...or something like that, there are missing &'s.

Edit/

bleh, too slow ;)

Edited by Werty

Some guy's script + some other guy's script = my script!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...