I need some help creating a vbscript to run a command line string to register zenworks agents to my zen server. Normally I would type it all in via command line but I want to script it so people don't need to remember all the options needed and password is not exposed in clear-text. The command normally run is "zac reg -k <keyname> -u <username> -p <password> https://servername:443
I would like the script to prompt for username and password and give me a choice of key names to select with a radio button so only one can be chosen. Then I would like it to execute the command in a cmd window. I don't want the password to be viewable in the command executed in the cmd window. Is it possible to put it in a variable that is only used for the vbscript?
I know about the set /p command for dos but if you type set you can see the variable and password.
If you have any other ideas on how to do this I'd like to hear them. Please help!