Home >Operation and Maintenance >Windows Operation and Maintenance >What to do if the current owner cannot be displayed

What to do if the current owner cannot be displayed

藏色散人
藏色散人Original
2020-05-15 10:24:4613944browse

What to do if the current owner cannot be displayed

What should I do if the current owner cannot be displayed?

Solution:

1. Open Notepad and enter the following text:

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]

@="Get permission"

"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\Directory\shell\runas]
@="获取权限"
"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"

2. Then save it as an import .reg file;

3. Then double-click the import .reg;

A warning will pop up, just allow the program to pass;

4. Then Select the file, right-click the mouse and select Get Permissions;

5. After obtaining permissions, select the file again, right-click the mouse and select Delete.

The above is the detailed content of What to do if the current owner cannot be displayed. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn