Computer Win7 How to get File management ownership (available in various ghost versions of Windows)

Source: Internet
Author: User

How does the computer WINDOWS7 system take ownership of file management? From Vista, Microsoft has significantly improved the security of the operating system, which allows us to open or delete files (clips) that we have previously opened or deleted under XP, and cannot operate under WIN7. Even if it is not operational under the Administrator Super Administrator account, you are prompted to "you need permissions from TrustedInstaller to make changes to this folder", or the prompt location is not available and access is denied.

In particular, clean up the system garbage, no matter what tool, can not clean up the files in the protected folder, for the convenience of operation, here is a registry file, after importing the registry, you just need to operate the file (folder) Right-click-the administrator to take ownership, so you can open or delete it.

It is important to note that if you are not very proficient in the structure of the system, please do not arbitrarily delete files that are useful to the system!!!

The contents of the registry are as follows:

Windows Registry Editor Version 5.00

[Hkey_classes_root*shellrunas]

@= "Administrator takes ownership"

"Noworkingdirectory" = ""

[Hkey_classes_root*shellrunascommand]

@= "cmd.exe/c takeown/f"%1 "& icacls"%1 "& icacls"%1 "/grant administrators:f"

"Isolatedcommand" = "cmd.exe/c takeown/f"%1 "& icacls"%1 "/grant administrators:f"

[HKEY_CLASSES_ROOTEXEFILESHELLRUNAS2]

@= "Administrator takes ownership"

"Noworkingdirectory" = ""

[Hkey_classes_rootexefileshellrunas2command]

@= "cmd.exe/c takeown/f"%1 "& icacls"%1 "& icacls"%1 "/grant administrators:f"

"Isolatedcommand" = "cmd.exe/c takeown/f"%1 "& icacls"%1 "/grant administrators:f"

[Hkey_classes_rootdirectoryshellrunas]

@= "Administrator takes ownership"

"Noworkingdirectory" = ""

[Hkey_classes_rootdirectoryshellrunascommand]

@= "cmd.exe/c takeown/f"%1 "/r/d Y & icacls"%1 "& icacls"%1 "/grant administrators:f/T"

"Isolatedcommand" = "cmd.exe/c takeown/f"%1 "/r/d Y & icacls"%1 "/grant administrators:f/T"

The above content can also be used in Windows7, but it is not available under the WIN7SP1 system platform, the following is a registry for the WIN7SP1 platform:

Windows Registry Editor Version 5.00

[Hkey_classes_root\*\shell\runas]

@= "Administrator takes ownership"

"Noworkingdirectory" = ""

[Hkey_classes_root\*\shell\runas\command]

@= "cmd.exe/c takeown/f \"%1\ "&& icacls \"%1\ "/grant administrators:f"

"Isolatedcommand" = "cmd.exe/c takeown/f \"%1\ "&& icacls \"%1\ "/grant administrators:f"

[HKEY_CLASSES_ROOT\EXEFILE\SHELL\RUNAS2]

@= "Administrator takes ownership"

"Noworkingdirectory" = ""

[Hkey_classes_root\exefile\shell\runas2\command]

@= "cmd.exe/c takeown/f \"%1\ "&& icacls \"%1\ "/grant administrators:f"

"Isolatedcommand" = "cmd.exe/c takeown/f \"%1\ "&& icacls \"%1\ "/grant administrators:f"

[Hkey_classes_root\directory\shell\runas]

@= "Administrator takes ownership"

"Noworkingdirectory" = ""

[Hkey_classes_root\directory\shell\runas\command]

@= "cmd.exe/c takeown/f \"%1\ "/r/d y && icacls \"%1\ "/grant administrators:f/T"

"Isolatedcommand" = "cmd.exe/c takeown/f \"%1\ "/r/d y && icacls \"%1\ "/grant administrators:f/T"

Http://www.windowszj.com/news/2279.html

Computer Win7 How to get File management ownership (available in various ghost versions of Windows)

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.