A. Assuming that you've already defined an objUser variable in a VBScript script that points to the user you want to disable, you can disable a user account by adding the following code to your script:
objUser.AccountDisabled = True objUser.SetInfo
0 comments
Hide comments