Passing user credentials when opening network paths with a command line

The Windows net use command can do that.

So, something like this:

net use \\computer_name\share password /user:username

In some cases the username may need to include the computer/domain.

1 Like