DarrenP Posted September 1, 2005 Posted September 1, 2005 ...This stumped me for too long... Running the command:net use P: \\Desktop1\MyShare MyPassword /user:MyUserkept returning this:System error 1312 has occured.A specified logon session does not exist. It may already have been terminated.??The correct way to do it...net use P: \\Desktop1\MyShare MyPassword /user:Desktop1\MyUserProvide the logon server and the username to the /user command...Im sure 99% of ya knew this already...
Jazkal Posted October 19, 2005 Posted October 19, 2005 Anyone know how to get around this, so I don't have to use the Servername in the login credentials?
Noise Posted October 19, 2005 Posted October 19, 2005 You got the username and password backwards. /user:username passwordIf your password has any spaces or percent signs or other special characters, you cant put it in the command line - it confuses the command line parser.Make a command script like this:rem Make sure P Drive does not existnet use P: /Drem Delete any secure channel connectionsnet use \\Desktop1\IPC$ /Drem Map the drivenet use P: \\Desktop1\MyShare /user:MyUser MyPassword
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now