Jump to content

Administrator rights?


Recommended Posts

Posted

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 :blushing:


Posted

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.reg

Windows 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.

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...