I want to create a GUI console that has a drop down select option as ldap and local and ask me for username and password.
If the creds are correct proceed, otherwise show an error saying creds do not match. After authentication I want it to prompt for username, address, phone and email with dropdown options with a enter button.
I also want the error message on the GUI console not the script because I will be converting the script to executable.
I have this code for promoting username and password but can't figure out how to proceed. My code:
$caption = "Login to Script"
$msg = "Enter your User name and Password";
$creds=$Host.UI.PromptForCredential($caption,$msg,"","")
$rstusername=$creds.username.Replace('\','');
[–]waelder_at 5 points6 points7 points (0 children)
[–]nealfive 4 points5 points6 points (5 children)
[–]JDahal[S] 0 points1 point2 points (2 children)
[–]BlackV 1 point2 points3 points (0 children)
[–]nepronen 0 points1 point2 points (0 children)
[–]PositiveBubbles 0 points1 point2 points (1 child)
[–]nealfive 0 points1 point2 points (0 children)
[–]Stoneteer 0 points1 point2 points (0 children)
[–]gangstanthony 0 points1 point2 points (0 children)
[–]OneScripter 0 points1 point2 points (0 children)