How to automatically enter username and password for network location in batch file?

Posted by Phoenix Logan on Super User See other posts from Super User or by Phoenix Logan
Published on 2014-06-09T15:09:45Z Indexed on 2014/06/09 15:30 UTC
Read the original article Hit count: 325

I have a batch file that copies files to a network location on WebDAV. The address looks something like this: \\xxxxxxxxx.net@SSL@2078\DavWWWRoot

When I restart my computer, the batch file doesn't work and says "Access denied". Before a restart, it works, but it doesn't after the computer restarts. The problem is that it requires me to put in the username and password used to access the server. I have to browse to the server in File Explorer and sign in first. Even if I select the "Remember password" check box, it doesn't work.

How can I get it to automatically sign in? I don't want to have to do this every time.

© Super User or respective owner

Related posts about Windows

Related posts about windows-8.1