Change vbs script (add user to group) to add multiple users
Hi - hope this is an easy one...
I've found the following script which adds a user to a group in AD:
groupPath = "LDAP://cn=ITC Staff,cn=users,dc=wisesoft,dc=co,dc=uk"
userPath = "LDAP://cn=test.3,cn=users,dc=wisesoft,dc=co,dc=uk"
SUB addToGroup(userPath, groupPath)
SET objGroup = GETOBJECT(groupPath)
FOR EACH member in objGroup.members
IF LCASE(member.adspath) = LCASE(userPath) THEN
What I'd like to do is have the script reference a file (.csv maybe?) for multiple users to be added to a group at once.
Just wanted to know how to go about that first off, and second off what sort of file would I need? If a .csv, what should be in it, or just really a list of names?
Cheers for any help! :)