the main goal of the script is to delete all members of a group. it finds the groups from the xlsm file col A
example: it gets group A from ColA Row2 and deletes all members of that group and move onto the next one in the xlsm file
Hi, I have a script which clears all users from groups located in a excel file.
The problem is that i have getting random errors stating:
Line 51
Char 2
Name translation; Could not find the name or insufficent right to see name
code: 80072116
SOurce: (null)
Sometimes it works and sometimes i...
Just had a thought but dont know how i would do it :)
Get the ((( strRoot = "OU=Users,DC=blah,DC=com" ))) Value from Cell "A1" in excel
and
Get the ((( strGroupName = "Group1" ))) Value from Cell "B1"
after that has processed the script would go back to the start but use
A2 & B2 etc until...
Hi All, I have been tasked at work to build a script which can do the following.
1. Add all users from a OU to a group i.e. ou=user1 to group1 etc
2. Delete users from group1 if no longer in ou=user1
3. This has to be done on a input file basis for example:
Excel: HeaderA1(Users OU) |...
Update:
I have found the following script on this forum.
************************************************************
'on error resume next
'Option explicit
Dim strOutfile, strSDesk, strDisOu, oshell, strUserName, strChange
Dim objRootDSE, DNSDomain, objConnection, objCommand, objRecordset...
Hi All,
I am new to this forum and dont know if this has been answered before. But I am trying to make a script which takes the "CN" name from a text file e.g
Example.txt - Name1
Name2
Name3
But the problem I am getting is the only script I could find uses the DN...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.