I've the following batch file with RUNAS and confusingly it does not work at all - I also tried the direct runas /user:domain\usename /savecred "cmd /c subst" - I wrote the batch files to see what was happeningĪ1.bat subst e: C:\Users\username\Documents\subst\eĪ.bat runas /user:domain\usename /savecred "cmd /c C:\Users\username\Documents\subst\E\a1.bat" In particular I need to run the commands SUBST E: G:\SUBST\Eīoth as an administrator and as a non-administratorīuilt in stuff such as VBS, PS would be ok - I'm using Windows 7 I would like a way to initiate a single command file - but that runs both with the full admin rights and the non-Admin token -Įither running as non-admin - and converting to admin - or running as admin and initiating a non-admin process would be fine
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |