Sunday, 15 July 2012

active directory - PowerShell v2.0+ add a computer to a domain global group -


I am using PowerShell version 2.0 and want to know how to make a domain computer A Domain Global Group.

In addition to this, I would like to know that it has a good site to go to, which has V2 commands and examples.

I know that this is a little late but, if you have PowerShell < Code> Active Directory You can use Modulde to do this to PowerShell 2.0 :

  import-module activation $ $ globalGroup = "Your_Global_Group" $ ComputerName = "computer name" $ ​​computerObj = Get-ADComputer $ computer name - properties * add-adgroup member-indentity $ global groupmember $ computerObj.DistinguishedName   

note < / Strong>: You Active Directory Programmed to be turned to use the windows feature activedirectory module can be found under the 'Saver Remote Administration Tools "tab in Windows features.

link:

No comments:

Post a Comment