Created
May 3, 2019 20:39
-
-
Save justinloring/59b516a31e4c392d2d16b509126ed4a8 to your computer and use it in GitHub Desktop.
Server Security Update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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