Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Info: net use command returns system error 1312

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic


  • Member
  • 8 posts
  • Joined 15-March 05
...This stumped me for too long...

Running the command:

net use P: \\Desktop1\MyShare MyPassword /user:MyUser

kept 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\MyUser

Provide the logon server and the username to the /user command...

Im sure 99% of ya knew this already... :whistle:

How to remove advertisement from MSFN



    Senior Member

  • Member
  • PipPipPipPip
  • 595 posts
  • Joined 16-January 04
Anyone know how to get around this, so I don't have to use the Servername in the login credentials?
Did you RTFM?



    Windows Guru

  • Member
  • PipPipPip
  • 419 posts
  • Joined 27-February 04
You got the username and password backwards. /user:username password

If 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 exist
net use P: /D

rem Delete any secure channel connections
net use \\Desktop1\IPC$ /D

rem Map the drive
net use P: \\Desktop1\MyShare /user:MyUser MyPassword