Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $g = Get-ADGroup -Identity "Domain Admins" -Server blue.goodworkaround.com
- New-ADObject -Type msDS-ShadowPrincipal -OtherAttributes @{
- "msDS-ShadowPrincipalSid" = $g.SID
- } -Path "CN=Shadow Principal Configuration,CN=Services,CN=Configuration,DC=red,DC=goodworkaround,DC=com" -Name "BLUE.Domain Admins"
- $g = Get-ADGroup -Identity "My Global Group" -Server blue.goodworkaround.com
- New-ADObject -Type msDS-ShadowPrincipal -OtherAttributes @{
- "msDS-ShadowPrincipalSid" = $g.SID
- } -Path "CN=Shadow Principal Configuration,CN=Services,CN=Configuration,DC=red,DC=goodworkaround,DC=com" -Name "BLUE.My Global Group"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement