• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 344
  • Last Modified:

NET USE command to log into a non domian server ?

What would the syntax be to log into a server that is not on the domain with a local user ID

Something like “NET USE //servername/c$ /user:username password” if I use a local user do I have to specify the server name what is the syntax for this ?
0
NAMEWITHELD12
Asked:
NAMEWITHELD12
  • 5
  • 3
2 Solutions
 
palinitrCommented:
To map a drive using a local user, use

NET USE * \\SERVER\ShareName /user:SERVER\UserName password
0
 
NAMEWITHELD12Author Commented:
what is the * for ?
0
 
NAMEWITHELD12Author Commented:
I am getting "System error 1219" when i try to do this
"Multiple connections error"
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
palinitrCommented:
This will map the next free drive letter working up from Z:, you could replace it with a specific drive letter
0
 
palinitrCommented:
1219 means you've already got a mapping (either working or failed) using a different user name.  Just type NET USE on its own and this will show all mappings.  To delete rogue maping, use NET USE driveletter: /delete or NET USE \\SERVER\SHARE /delete
0
 
NAMEWITHELD12Author Commented:
ok I will try that I am getting this and it seems to indicate that you are right
Username: Ro
Password: ********
Connecting to re1ntst01
System error 1219 has occurred.

Multiple connections to a server or shared resource by the same user, using more
 than one user name, are not allowed. Disconnect all previous connections to the
 server or shared resource and try again
0
 
ClintSwineyCommented:
You cannot connect to the same Windows/Samba Server using different credentials if you are already authenticated there. You first have to disconnect any drives/connections then map the device.

net use * /d /yes

That will delete all the existing connections and allow you to connect with the different credentials. The problem is that if you have needed mapped resources it disconnects all of them, and then you have to reconnect to them all using the new credentials.
0
 
NAMEWITHELD12Author Commented:
thanks i will try that !!

EE is the best !
0
 
NAMEWITHELD12Author Commented:
Thanks !!!!!!!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now