Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
2  
Which version of Windows? –  harrymc Nov 2 '10 at 19:21
    
If UAC is enabled, you should follow the answer here: superuser.com/a/372436/24500 –  surfasb Dec 29 '11 at 5:05
add comment

2 Answers

up vote 4 down vote accepted

You can use runas

d:
cd\
cd TrueCrypt
runas /noprofile /user:mymachine\administrator truecrypt /ll /p "" /q /v d:\MYO
share|improve this answer
    
This no longer works starting with Vista/7. On non-domain joined machines, this will work, as the built-in Admin account is granted Admin Approval mode. Domain joined machines will have their built-in Admin Account disabled and this will not work. In general though, runas does not equal admin rights if UAC is enabled. –  surfasb Dec 28 '11 at 21:24
add comment

If it is run as a Startup Script it runs with Elevated permissions (at least in XP and earlier Not sure on Vista/7) This is set under Computer Configuration-Windows Setting-Scripts(Startup/Shutdown)

share|improve this answer
    
This worked for me on Windows 7 Pro on a non-domain system. Thanks for the tip, I used gpedit.msc to add the script to my user account and now it runs as admin on startup. –  drew010 Apr 7 '12 at 18:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.