I need a VBScript that I plan on running during a deployment task sequence in SCCM on Windows PE.
The script will need to do the following:
-Ask for credentials input username/password (to connect to Active Directory with an account that has read/write access)
-Verify credentials. If credentials are not correct, then exit.
-After admin credentials are verified, ask to enter username to search for
-Check to see if username exists in AD. If username does not exist then ask to input username again.
-Once username is verified, then run query to search for the following in Active Directory:
-Set the first name and last name to separate variables, such as fName and LName.
The reason I need this script is so that I can use the variables gathered (fName and LName) for some other things during task sequence.
Most importantly, this must work while the computer running the script is outside of the domain, since I will be running...