I am searching for answers for my AD query. Please see my post for AD query w/inputbox. I have the basic stuff done but I canot get it to go back to the beginning if they wish to run another name.
Thank you.
User Profile
Collapse
-
need to insert loop back into process
Now that I have figured out how to get the basics, how do I insert a If Then to loop it back if they want to retry if they name exists.
Same question if the name is OK if they would like to check another name.
Should I use the MsgBox at this point? -
Figured it out after several attempts:
Now I need to figure out if the name exists, how to loop back to check another
On Error Resume Next
Const ADS_SCOPE_SUBTR EE = 2
Dim Fname
strFname = InputBox("Pleas e put the desired User Name:",Fname)
If strFname = "" Then
WScript.Echo "No User Name entered. Program aborted."
Wscript.Quit
End If
Set...Leave a comment:
-
AD query - search AD for valid username w/input box
Trying to create a text box w/user input to enter a suggested user name and query AD to see if the name is available. This is for HR users who do not have access to the Admin tools to open the container. Can this be written another way to "prompt" for user input somewhere else in the script?
Thank you -
On Error Resume Next
Const ADS_SCOPE_SUBTR EE = 2
strUSER = InputBox("Pleas e put the desired...
No activity results to display
Show More
Leave a comment: