Skip to content

Instantly share code, notes, and snippets.

Avatar
🐙
https://youtu.be/TulBh6klMuU

General Zod olen2006

🐙
https://youtu.be/TulBh6klMuU
  • Solar System, Earth
View GitHub Profile
@alastairtree
alastairtree / gist:6777218c2c7facc17282
Created Jul 28, 2014
grant read execute permissions to a folder via powershell
View gist:6777218c2c7facc17282
$path = "C:\Sites\Website123"
$user = "domain\user"
$acl = Get-Acl $path
$arguments = $user, "ReadAndExecute", "ContainerInherit, ObjectInherit", "None", "Allow"
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $arguments
$acl.SetAccessRule($accessRule)