Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jacobhackl/05c3c201aa80a909de4da4af33736077 to your computer and use it in GitHub Desktop.
Save jacobhackl/05c3c201aa80a909de4da4af33736077 to your computer and use it in GitHub Desktop.
Windows Server ownership and read rights.ps1
TAKEOWN /F "<foldername>" /R /D N /A
Remove folder read-only attribute
ATTRIB -R /D /S "<Foldername>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment