Created
February 1, 2013 16:52
-
-
Save ddhahn/4692533 to your computer and use it in GitHub Desktop.
Add a Computers directly to a GPO ACL with Read and Apply permissions. May be useful for ad-hoc testing of GPO's
This file contains hidden or 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
$names = Get-Content c:\temp\gpolist.txt | |
foreach ($name in $names) { | |
set-gppermissions -name "GPOName" -permissionlevel gpoRead -targetname "$name" -targettype computer | |
set-gppermissions -name "GPOName" -permissionlevel gpoapply -targetname "$name" -targettype computer | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment