(Using an explicit password on the command line is convenient but visible to other processes/users — consider alternatives below.)
The asterisk tells CMD to ask for the password without echoing it to the console. cmd map network drive better
By default, Windows uses your current login credentials. To connect as a different user "better," use these methods: (Using an explicit password on the command line