Windows/Take Ownership: Difference between revisions

From Omnia
Jump to navigation Jump to search
(Created page with " takeown /f "C:\Path\To\Folder" /r /d y icacls "C:\Path\To\Folder" /grant Administrators:F /t rmdir /s /q "C:\Path\To\Folder"")
 
No edit summary
Line 2: Line 2:


  icacls "C:\Path\To\Folder" /grant Administrators:F /t
  icacls "C:\Path\To\Folder" /grant Administrators:F /t
# or
icacls "C:\Path\To\Folder" /grant USERNAME:F /t


  rmdir /s /q "C:\Path\To\Folder"
  rmdir /s /q "C:\Path\To\Folder"

Revision as of 18:49, 19 December 2025

takeown /f "C:\Path\To\Folder" /r /d y
icacls "C:\Path\To\Folder" /grant Administrators:F /t
# or
icacls "C:\Path\To\Folder" /grant USERNAME:F /t

rmdir /s /q "C:\Path\To\Folder"