Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Sign in to follow this  
Followers 0
DarrenP

Info: net use command returns system error 1312

3 posts in this topic

...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.

:huh:??

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:

0

Share this post


Link to post
Share on other sites

Anyone know how to get around this, so I don't have to use the Servername in the login credentials?

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.