Is there a way to have a batch file launch a second batch file at an elevated privilege level? I have a batch file (named "runme.bat") that calls a batch file that does some registry changes, and I'd like the runme.bat to call the second at an elevated privilege level (and ask the user once to allow the elevation rather than multiple times.) I tried:

runas /user:administrator fixit.bat

 but then the system asks for an administrator password and there isn't one.

I know that I can right click on RunMe.bat and choose Run as Administrator, but that's a bit clunky.

T


Reply via email to