Active Directory Copy Members from Groups to Groups
Merhabalar,
AD üzerinde ki herhangi bir grubun üyelerini başka bir gruba kopyalamak için aşağıdaki powershell komutlarını kullanabilirsiniz.
1 2 3 4 |
<span class="typ">Get</span><span class="pun">-</span><span class="typ">ADGroupMember</span> <span class="str">"SourceGroup"</span> <span class="pun">|</span> <span class="typ">ForEach</span><span class="pun">-</span><span class="typ">Object</span> <span class="pun">{</span> <span class="typ">Add</span><span class="pun">-</span><span class="typ">ADGroupMember</span> <span class="pun">-</span><span class="typ">Identity</span> <span class="str">"DestinationGroup"</span> <span class="pun">-</span><span class="typ">Member</span><span class="pln"> $_</span><span class="pun">.</span><span class="typ">SamAccountName</span> <span class="pun">} <img class="alignnone size-full wp-image-5238" src="/wp-content/uploads/2012/12/PowerShell-3.0-ile-IP-Konfigürasyonunu-Öğrenmek.png" alt="PowerShell 3.0 ile IP Konfigürasyonunu Öğrenmek" width="64" height="64" /> </span> |