PowerShell Lab
Build, find and save PowerShell
Reviewed templates and commands with requirements, permissions and risk spelled out. Nothing here runs anything — you copy, review and run it yourself.
Search pages, tools, PowerShell commands and ports
Recover access to a folder whose permissions locked everyone out.
1takeown /F 'D:\Data\Locked' /R /A /D Y2icacls 'D:\Data\Locked' /grant 'Administrators:(OI)(CI)F' /T /CChanges ownership recursively and is hard to undo. Export the current ACLs first: icacls 'D:\Data\Locked' /save C:\Temp\acl-backup.txt /T