Ok, so I've added a sub function under the Sub DisplayUserAccount(sSamAcctName) function in bslintx's script. Can someone please read it over and let me know if it'll work because I can only test it once due to company security policy.
Sub DisableUser
On Error Resume Next
Const...
Thank you both for your quick responses!!
ok, to add the remove user groups function I would add,
Sub RemoveGroups
On Error Resume Next
Const ADS_PROPERTY_DELETE = 4
Set objUser = GetObject(oRs("adspath"))
oMemberOf = objUser.GetEx("memberOf")
For Each Group in oMemberOf...
Hi everybody,
I'm looking for some help on accomplishing the following:
using a single InputBox entry to prompt for the user name, to get the distinguished name and groups of the user. Then using that information to disable the account, move it to an OU, modify some attributes and remove all...
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.