Welcome to Powergui.org - an open source community for Windows Powershell

PowerGUI.org PowerGUI.org and blogs
[3083] Sync two AD-Groups    « Back to Category
Author: m.colley_750, Created on: Jan 4, 2011 8:11 AM
Keywords: AD Sync Group
Rating: Not Rated


param(
[string] $sourceGroup,
[string] $targetGroup
)


#region Get the current PowerPack configuration.
$configuration = Get-ActiveDirectoryPowerPackConfiguration
#endregion

#region Connect if we're not already connected.
$configuration.Connect()
#endregion

#region Set the data object on the current node.
Set-AdminConsoleNodeData -AssociatedObject @{'Connection'=$configuration.Connection}
#endregion

# Schreiben Sie hier ihr PowerShell Skript


Get-QadGroupMember $sourceGroup | Add-QadGroupmember $targetGroup

# und schließen Sie es entweder mit dem get- cmdlet oder write-output ab

Document Rating
Rating: Not Rated

Related Documents
No Related Documents