I need to get authentication credentials from the users within a Windows script but the classic \"first Google result\" approach:
SET /P USR=Username: SET /
another alternative is my EditV32 (x86) or EditV64 (x64) command-line tools. For example:
editv32 -m -p "Password: " PWD
-m means "masked input" and -p is the prompt. The user's input is stored in the PWD environment variable. You can get it here:
-m
-p
http://www.westmesatech.com/editv.html