關閉→
當前位置:知科普>IT科技>【高手就這樣簡簡單單】配置TrustedInstaller權限

【高手就這樣簡簡單單】配置TrustedInstaller權限

知科普 人氣:4.53K
有時候我們刪除文件出現如圖所示情況,我們該怎麼解決呢,下面和360高手聯盟一起來看下

【高手就這樣簡簡單單】配置TrustedInstaller權限

材料/工具

電腦

方法

首先在桌面上新建一個文本文檔,打開此文本文檔,複製以下代碼寫入文檔:


Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*shellunas]
@=”獲取TrustedInstaller權限”
[HKEY_CLASSES_ROOT*shellunascommand]
@=”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_ROOTDirectoryshellunas]
@=”獲取TrustedInstaller權限”
“NoWorkingDirectory”=””
[HKEY_CLASSES_ROOTDirectoryshellunascommand]
@=”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”


然後保存,將文檔後綴.txt更改為註冊表格式.reg

【高手就這樣簡簡單單】配置TrustedInstaller權限 第2張

最後桌面會生成如圖
然後雙擊就可以導入

【高手就這樣簡簡單單】配置TrustedInstaller權限 第3張

再遇到那種情況時可以鼠標右鍵單鍵 選擇取得權限即可,完成之後,進行刪除等操作即可成功完成