?
Solved

Using Net Use command

Posted on 2005-03-14
4
Medium Priority
?
223 Views
Last Modified: 2010-03-18
Can someone answer my question for me. I am trying to automate connecting a mapped drive to a server. The problem that I have is all computers are part of a workgroup and the server is windows 2003( don't ask me I ddi not set it up). Any way the user has a laptop that he travels with when ever he returns he always calls me to re-map his q dirve to the server. When I run the following command it gives me invalid sytax. I think my confusion is I do not know if I should use the domain name when trying to connec tto the server or the workgroup name. the user name is, for this purpose, ernie and the domain would be bajatc, password I will just put in password and change it to the real one when i copy the file over. Can someone tell me what is incorrect with my syntax?

NET USE Q: \\the-big-one\NETSOL quickbooks 5.0 /USER:ernie@domainname password

The workstation is winXP and the server is server 2003. Any help would be greatly appreciated.
0
Comment
Question by:griffinss
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 13539494
Actually, since you are not using a Domain Controller, you really have not setup a Domain yet...  

you will need to use the ComputerName which I assume would be "the-big-one"?

When I map a drive, this is my syntax:

net use x:  \\servername\sharename  password /user:username

and if you wish this to be automatic, use the persistent switch..

FE
0
 

Author Comment

by:griffinss
ID: 13539573
So yo uare suggesting that the command should be like this

net use q: \\the-big-one\NETSOL quickbooks 5.0  password /user:ernie

the-big-one is the srever name and NETSOL quickbooks 5.0  is the share. I will try this and award the points accordingly. Thanks. Let you know in about 2 hours.
0
 
LVL 40

Accepted Solution

by:
Fatal_Exception earned 200 total points
ID: 13539776
net use q: \\the-big-one\NETSOL quickbooks 5.0  password /user:ernie

As long as your sharename is NETSOL quickbooks 5.0, you will need to place quotes around it.  like this:

net use q: \\the-big-one\"NETSOL quickbooks 5.0"  password  /user:ernie
0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 13540787
Very good, and thanks!

FE
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question