Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create a Domain Local Security GroupContent of Create a Domain Local Security Group.vbsMD5 Hash: 509E36A1094A622320609F8BE66AAD50 |
||
' Description: Creates a domain local Active Directory security group named DB-Servers.
Const ADS_GROUP_TYPE_LOCAL_GROUP = &h4 Const ADS_GROUP_TYPE_SECURITY_ENABLED = &h80000000 Set objOU = GetObject("LDAP://cn=Computers,dc=NA,dc=fabrikam,dc=com") Set objGroup = objOU.Create("Group", "cn=DB-Servers") objGroup.Put "sAMAccountName", "DBServers" objGroup.Put "groupType", ADS_GROUP_TYPE_LOCAL_GROUP Or _ ADS_GROUP_TYPE_SECURITY_ENABLED objGroup.SetInfo | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |