![]() ("LDAP://cn=Atl-Users,cn=Users,dc=NA,dc=fabrikam,dc=com") WScript.Echo "Group1 created and 1000 Users added to the group."Īdds a user (MyerKen) to two different Active Directory security groups: Atl-Users and NA-Employees. ObjGroup.PutEx ADS_PROPERTY_APPEND, "member", _ StrDN = ",cn=Users," & faultNamingContext Set objGroup = objContainer.Create("Group", "cn=Group1") Set objContainer = GetObject("LDAP://cn=Users," & _ Set objRootDSE = GetObject("LDAP://rootDSE") This script is not intended for use in a production environment. ![]() You can use any of the VBScript programs below in ActiveXperts Network Monitor.Ĭlick here for an explanation about how to include scripts in ActiveXperts Network Monitor.Īdd 1000 Sample Users to a Security Groupĭemonstration script that creates a security group named Group1, and adds one thousand users (UserNo1 through UserNo10000) to that group. Replace Group Membership with All-New Members Remove All Group Memberships for a User Account List the System Access Control List for a Group List the Primary Group for a User Account List the Managed By Information for a Group ![]() List Group Memberships for All the Users in an OU ![]() List the Active Directory Groups a User Belongs To Active Directory Group Scripts Add 1000 Sample Users to a Security Group
0 Comments
Leave a Reply. |