Skip to content

Instantly share code, notes, and snippets.

@justinloring
Created May 3, 2019 20:39
Show Gist options
  • Save justinloring/59b516a31e4c392d2d16b509126ed4a8 to your computer and use it in GitHub Desktop.
Save justinloring/59b516a31e4c392d2d16b509126ed4a8 to your computer and use it in GitHub Desktop.
Server Security Update
$acl = get-acl -path \\d-721-01\OSD_BKUP$
$serverlist = Get-Content -Path "C:\RSICode\ServerACL\ServerACL.txt"
 
foreach ($server in $serverlist){
$acl | set-acl -path \\$server\OSD_BKUP$
Write-Host "Permissions changed for $server."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment