Type NET USE /? for a list of the commands but it goes something like this:
NET USE J: \\SERVER\SHARE /user:domainname\username xxxxxx
The 'xxxxxx' is the password.
One thing you should be aware of, this will pass the username and password in clear text over the network and the password is visible (not masked), even if in a batch file.
If you omit the password, it will try a blank one. If it fails, it will prompt you for a password.
Beware that the blank password counts as a failed attempt. If you add this into a script or something, it could cause lockouts on the account you will be using, depending on the setting on your domain.
"In space, nobody can hear you click..."
Pass login credentials? You mean to avoid them?
Because once you are having an authorization from a domain controller, your accout will be recognize, and you wil be asked just for connections to shares on which you don't have yet authorization.
The credentials are part of a token that you will provide whenever you will try to access a resource.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.