Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create a Global Distribution GroupContent of Create a Global Distribution Group.vbsMD5 Hash: 9C5DADA38CCA78821C1FE8EAE3CEEC6E |
||
' Description: Creates a global Active Directory distribution group named Scientists.
Const ADS_GROUP_TYPE_GLOBAL_GROUP = &h2 Set objOU = GetObject("LDAP://ou=R&D,dc=NA,dc=fabrikam,dc=com") Set objGroup = objOU.Create("Group", "cn=Scientists") objGroup.Put "sAMAccountName", "scientists" objGroup.Put "groupType", ADS_GROUP_TYPE_GLOBAL_GROUP objGroup.SetInfo | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |