Batch file – start program with admin rights

administratorbatchboot

I have a .bat file in my startup folder:

d:
cd\
cd TrueCrypt
truecrypt /ll /p "" /q /v d:\MYO

Is there a way to start TrueCrypt with admin right?

Best Answer

You can use runas

d:
cd\
cd TrueCrypt
runas /noprofile /user:mymachine\administrator truecrypt /ll /p "" /q /v d:\MYO
Related Question