Net.exe use ‘Error: A command was used with conflicting switches.’ while using /savecred
When we use /savecred switch we should not give the 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.