Windows/Delete Unowned Folder: 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 1: Line 1:
Run from a user in Administrators group, and from a command line window elevated to Administrator permission
  takeown /f "C:\Path\To\Folder" /r /d y
  takeown /f "C:\Path\To\Folder" /r /d y



Revision as of 18:51, 19 December 2025

Run from a user in Administrators group, and from a command line window elevated to Administrator permission

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"