Yesterday I followed a thread trying to learn to lock file folders using the cacls in the command window. I thought I'd use the temp file folder as my target, thinking that it was the most innocent folder I had. I was able to lock it, but now I can't unlock it.
Here is the code that I used to lock it:
cacls %temp% /G %username%:R
it asked me: Are you sure <Y/N> I replied Y, and it returned "processed dir: C:\DPCUME~1\HASLAM~4.AFT\LOCALS~1\Temp
I could confirm that I was unable to save anything to the temp folder. So I then wanted to unlock the folder. I used the following code:
cacls %temp% /E /T /C /G %username%:F .nul
It returns : Access is denied.
If I use the exact path to the filename instead of %temp%, I get:
The trust relationship between this workstation and the primary domain failed.
I can't download files: tells me I don't have permissions
I can't save word documents: tells me I don't have permissions
I can't read Eudora email: tells me it can't access the temp folder
I am stuck. Any thoughts on the steps I need to follow to get this working? Would a system restore take me back to how I was before?