Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System Environment

Status
Not open for further replies.

hooverd

Technical User
May 18, 2006
16
US
I have been searching threads and Forums but can't find an answer to this problem. I have a VB Script that maps drives and deletes temp folders and temp Internet folders. I need also to delete the WINNT temp folder, but that requires different permissions than a regular user has. I saw a thread that talkes about using Cacl.exe but don't know exactly how to incorporate it into my script. Thanks in advance for all the help.
hooverd
 
The synatx would be:

CACLS %WINDIR%\TEMP /E /G "EVERYONE":F

But the problem is that you need Administrator priviliges to make the CACLS change. (Sort of a Catch 22 situation).

You might consider a RUNAS wrapper: thread779-676827
You need only run this once by the way on each machine.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top