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

Using Net Use command

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
griffinss
Asked:
griffinss
  • 3
1 Solution
 
Fatal_ExceptionCommented:
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
 
griffinssAuthor Commented:
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
 
Fatal_ExceptionCommented:
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
 
Fatal_ExceptionCommented:
Very good, and thanks!

FE
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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