Jan 14, 2004 #1 FestusMcShamus MIS Joined Dec 8, 2003 Messages 56 Location US does anyone know the correct way to add runas to a script. i need to update the system environment path and this can only be done logged on as admin.
does anyone know the correct way to add runas to a script. i need to update the system environment path and this can only be done logged on as admin.
Jan 15, 2004 #2 Strahan MIS Joined Jan 9, 2004 Messages 20 Location US Can't you just shell it? Set SH = CreateObject("WScript.Shell" SH.Run "%comspec% /c %systemroot%\system32\runas.exe /user:domain\username blah blah blah..." Upvote 0 Downvote
Can't you just shell it? Set SH = CreateObject("WScript.Shell" SH.Run "%comspec% /c %systemroot%\system32\runas.exe /user:domain\username blah blah blah..."