Advertisement
Oreloth

WindowsApps Access

Jun 6th, 2020
1,407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.38 KB | None | 0 0
  1. [HKEY_CLASSES_ROOT\*\shell\TakeOwnership]
  2. @="Take Ownership"
  3. "HasLUAShield"=""
  4. "NoWorkingDirectory"=""
  5. "Position"="middle"
  6.  
  7. [HKEY_CLASSES_ROOT\*\shell\TakeOwnership\command]
  8. @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l' -Verb runAs\""
  9. "IsolatedCommand"= "powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l' -Verb runAs\""
  10.  
  11.  
  12.  
  13. [HKEY_CLASSES_ROOT\Directory\shell\TakeOwnership]
  14. @="Take Ownership"
  15. "AppliesTo"="NOT (System.ItemPathDisplay:=\"C:\\Users\" OR System.ItemPathDisplay:=\"C:\\ProgramData\" OR System.ItemPathDisplay:=\"C:\\Windows\" OR System.ItemPathDisplay:=\"C:\\Windows\\System32\" OR System.ItemPathDisplay:=\"C:\\Program Files\" OR System.ItemPathDisplay:=\"C:\\Program Files (x86)\")"
  16. "HasLUAShield"=""
  17. "NoWorkingDirectory"=""
  18. "Position"="middle"
  19.  
  20. [HKEY_CLASSES_ROOT\Directory\shell\TakeOwnership\command]
  21. @="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" /r /d y && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l /q' -Verb runAs\""
  22. "IsolatedCommand"="powershell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/c takeown /f \\\"%1\\\" /r /d y && icacls \\\"%1\\\" /grant *S-1-3-4:F /t /c /l /q' -Verb runAs\""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement