I am trying to use the following command to map a drive in persistent mode, and I don’t want it to ask for login credentials every time the machine is restarted:
net use P : \\server\folder Password123 / user : user123 / savecred / persistent : yes
The error is as follows:
A command was used with conflicting switches . More help is available by typing NET HELPMSG 3510 .
When we use the /savecred
switch we should not provide credentials in the same line. The correct command should be:
net use P : \\server\folder / savecred / persistent : yes
It will ask for username and password.