cytan Posted January 30, 2010 Share Posted January 30, 2010 Hi all, I have a problem, I have been trying to change a txt file in the win dir, it wont let me even though I am logged in as the administrator with all rights except one and that one is special permissions which it wont let me change. any ideas. thanks Link to comment Share on other sites More sharing options...
MrJinje Posted January 30, 2010 Share Posted January 30, 2010 You need to take ownership of the file. Below is a common reg script for creating a right click entry so you can "right click" the file and take ownership of it very easily. Otherwise you need to look up the command line syntax and do the same thing manually.Take_Ownership_Multi_Lingual.regWindows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\*\shell\runas]@="Take Ownership""NoWorkingDirectory"=""[HKEY_CLASSES_ROOT\*\shell\runas\command]@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant *S-1-5-32-544:F""IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant *S-1-5-32-544:F"[HKEY_CLASSES_ROOT\Directory\shell\runas]@="Take Ownership""NoWorkingDirectory"=""[HKEY_CLASSES_ROOT\Directory\shell\runas\command]@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant *S-1-5-32-544:F /t""IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant *S-1-5-32-544:F /t"Above is my multi-lingual version. Here is an english only version from the HowToGeek.com. Link to comment Share on other sites More sharing options...
CoffeeFiend Posted January 30, 2010 Share Posted January 30, 2010 Just start notepad (or whichever text editor you're using) elevated (right click on notepad and pick "run as administrator") and open your file. It should be able to save it then. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now