Windows/Delete Unowned Folder

From Omnia
Revision as of 18:51, 19 December 2025 by Kenneth (talk | contribs)
Jump to navigation Jump to search

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"