I'm using PowerShell version 2.0 and wanted to know how to add a Domain Computer into a Domain Global Group.
Also I would like to know if there is a good site to go to that has V2 commands and examples.
I'm using PowerShell version 2.0 and wanted to know how to add a Domain Computer into a Domain Global Group.
Also I would like to know if there is a good site to go to that has V2 commands and examples.
私はこれが少し遅れていることを知っていますが、PowerShellのActive Directorymodulde を使用して でこれを行うことができます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を使用できるようにするには、Windows 機能をオンにする必要があります。activedirectoryこれは、Windows 機能の [リモート サーバー管理ツール] タブにあります。
リンク: AD モジュールのコマンドレットの場合