I have to assign full control to a specific folder to everyone. Until now I log on into domain with my admin account and I apply my changes. I'd like to know if it's possible using my credential to apply this change from a limited account without logging out and re-logging.

Command line solutions are equally welcomes. Thanks.

link|improve this question

feedback

2 Answers

up vote 2 down vote accepted

Go to Start>All Programs>Accessories and right-click on the command prompt and click "Run As", and run it as an administrator on the computer, which should include your domain admin account.

Then use this command to give the group Everyone full access to the folder C:\temp (in my example) and all the subfolders:

CACLS c:\temp /E /T /C /G "Everyone":F

link|improve this answer
Great! You solved my problem. Thank you very much :) – eric cartman Jun 25 '11 at 18:33
feedback

You can start programs using different credentials with runas:

runas /u:Administrator "explorer /separate"

runas /u:Administrator /netonly "explorer /separate"

The first actually logs in to the specified account, the second only uses provided credentials for network connections, but keeps your local privileges.

Optionally add /savecred to remember the password.

link|improve this answer
+1 Thanks for your answer. – eric cartman Jun 25 '11 at 18:32
@eric cartman Glad to help Eric. Thank you for marking the answer, I appreciate it. – KCotreau Jun 25 '11 at 18:37
feedback

Your Answer

 
or
required, but never shown

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