2013-03-26 73 views

回答

0

我知道這是有點晚了,但是,你可以使用PowerShellActive Directory modulde爲此在PowerShell 2.0

Import-Module activedirectory 

$globalGroup = "Your_Global_Group" 
$computerName = "Your Computer Name" 

$computerObj = Get-ADComputer $computerName -properties * 
Add-ADGroupMember -Identity $globalGroup -Members $computerObj.DistinguishedName 

注意:您需要打開Active Directory窗口功能是能夠使用activedirectory模塊。這可以在Windows功能中的「遠程服務器管理工​​具」選項卡下找到。

鏈接:For Cmdlet's in the AD module