#script #powershell per copiare la group membership da un utente all’altro.

$K = Get-QADUser User1 |select memberof

foreach($user in $K.memberof)


Add-QADGroupMember -Identity $user -Member ‘User2’


Richiede le estensioni powershell AD sviluppate da Quest: http://www.quest.com/powershell/activeroles-server.aspx

da http://powershell.com/cs/media/p/4341.aspx

PowerShell Commands (CMDLETs) for Active Directory by Quest Software


The ActiveRoles Management Shell for Active Directory is a set of predefined commands for Windows PowerShell, the new command line and scripting language developed by Microsoft. These commands are designed to help administrators automate common, repetitive and bulk management tasks such as creating, removing or updating objects in Active Directory.

via Yammer : ICT Only.