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 ?
LVL 1
NAMEWITHELD12Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.