win10软件拒绝访问删不掉_Win10右键菜单添加“获取文件管理员权限”选项
文件訪問(wèn)被拒絕,你需要TrustedInstaller提供的權(quán)限才能對(duì)此文件進(jìn)行更改/文件訪問(wèn)被拒絕,你需要權(quán)限才能執(zhí)行此操作/你需要提供管理員權(quán)限才能移動(dòng)此文件”
兩種方案
一長(zhǎng)期
為Win10右鍵菜單添加“獲取文件管理員權(quán)限”選項(xiàng) - Windows10.Pro?www.windows10.pro一、獲取Win10超級(jí)管理員權(quán)限
新建一個(gè)文本文件,然后把以下命令復(fù)制到文本中:
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT*shellrunas]@="管理員取得所有權(quán)""NoWorkingDirectory"=""[HKEY_CLASSES_ROOT*shellrunascommand]@="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_ROOTexefileshellrunas2]@="管理員取得所有權(quán)""NoWorkingDirectory"=""[HKEY_CLASSES_ROOTexefileshellrunas2command]@="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_ROOTDirectoryshellrunas]@="管理員取得所有權(quán)""NoWorkingDirectory"=""[HKEY_CLASSES_ROOTDirectoryshellrunascommand]@="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"然后把該文本文檔命名為“Win10管理員取得所有權(quán).reg” ,然后雙擊導(dǎo)入注冊(cè)表即可,這樣就獲得了Win10超級(jí)管理員權(quán)限。在任意文件或文件夾上點(diǎn)擊右鍵即可看到“管理員取得所有權(quán)”選項(xiàng)。
二、取消已獲取的Win10超級(jí)管理員權(quán)限
這里指的是取消右鍵菜單中的“管理員取得所有權(quán)”選項(xiàng)。方法是新建一個(gè)文本文檔,把以下命令復(fù)制到文本中:
Windows Registry Editor Version 5.00[-HKEY_CLASSES_ROOT*shellrunas][-HKEY_CLASSES_ROOTDirectoryshellrunas][-HKEY_CLASSES_ROOTdllfileshell][-HKEY_CLASSES_ROOTDriveshellrunas][-HKEY_CLASSES_ROOTexefileshellrunas][HKEY_CLASSES_ROOTexefileshellrunas]"HasLUAShield"=""[HKEY_CLASSES_ROOTexefileshellrunascommand]@=""%1" %*""IsolatedCommand"=""%1" %*"-----------------------------------------------三、恢復(fù)原始的Win10超級(jí)管理員權(quán)限Windows Registry Editor Version 5.00;恢復(fù)原始權(quán)限 [HKEY_CLASSES_ROOT*shellrunas-] @="恢復(fù)原始權(quán)限""Icon"="C:WindowsSystem32imageres.dll,101""NoWorkingDirectory"=""; && takeown /f "%1"[HKEY_CLASSES_ROOT*shellrunas-command] @="cmd.exe /c takeown /f "%1" && icacls "%1" /reset && cacls "%1" /e /r "%%USERNAME%%"""IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /reset && cacls "%1" /e /r "%%USERNAME%%""[HKEY_CLASSES_ROOTexefileshellrunas2-] @="恢復(fù)原始權(quán)限""Icon"="C:WindowsSystem32imageres.dll,101""NoWorkingDirectory"=""[HKEY_CLASSES_ROOTexefileshellrunas2-command] @="cmd.exe /c takeown /f "%1" && icacls "%1" /reset && cacls "%1" /e /r "%%USERNAME%%"""IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /reset && cacls "%1" /e /r "%%USERNAME%%""[HKEY_CLASSES_ROOTDirectoryshellrunas-] @="恢復(fù)原始權(quán)限""Icon"="C:WindowsSystem32imageres.dll,101""NoWorkingDirectory"=""[HKEY_CLASSES_ROOTDirectoryshellrunas-command] @="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /reset && cacls "%1" /e /r "%%USERNAME%%"""IsolatedCommand"="cmd.exe /c takeown /f "%1" /r /d y && icacls "%1" /reset && cacls "%1" /e /r "%%USERNAME%%""
然后把該文本文檔命名為“Win10取消管理員取得所有權(quán).reg” ,雙擊導(dǎo)入注冊(cè)表即可,這樣就取消了超級(jí)管理員權(quán)限。
如果你嫌自己動(dòng)手太麻煩的話(huà),可以下載Microsoft酋長(zhǎng)制作好的兩個(gè)reg文件,解壓后,直接雙擊導(dǎo)入注冊(cè)表即可。
二 exe程序
巧用WinOwnership一鍵臨時(shí)獲取文件管理員權(quán)限 - Windows10.Pro?www.windows10.pro來(lái)源
為Win10右鍵菜單添加“獲取文件管理員權(quán)限”選項(xiàng) - Windows10.Pro?www.windows10.pro巧用WinOwnership一鍵臨時(shí)獲取文件管理員權(quán)限 - Windows10.Pro?www.windows10.pro在Win10右鍵菜單添加“獲取管理員權(quán)限/恢復(fù)原始權(quán)限”選項(xiàng) - Windows10.Pro?www.windows10.pro總結(jié)
以上是生活随笔為你收集整理的win10软件拒绝访问删不掉_Win10右键菜单添加“获取文件管理员权限”选项的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 三星s4 android 6.0吗,快了
- 下一篇: java local_java.time