Getting the NET USE command script to work

C

Cam

I am running Windows 2000 Server SP4. I want to have all
the users logon using the Logon Script. I have it set up
to access their home directory 'H' and access the 'DATA'
drive. The bat file contains the following:

NET USE H: /HOME
NET USE L: \\SERVERNAME\DATA

When I use this bat file as my logon script, I only get
the Home directory connected. The Data directory doesn't
connect. I've tried doing the command in DOS, as well as
from the run line and no success. I get the error
message 'The network name cannot be found'.

What must I do so this works??

Cameron
 
R

Robert L [MS-MVP]

what do you get if using net view \\servername?

--
For more and other information, go to http://www.ChicagoTech.net

Don't send e-mail or reply to me except you need consulting services.
Posting on MS newsgroup will benefit all readers and you may get more help.

Robert Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN, Anti-Virus, Tips & Troubleshooting on
http://www.ChicagoTech.net
This posting is provided "AS IS" with no warranties.
 
C

Cam

This is what it says:

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.


C:\>net view \\
Shared resources at \\



Share name Type Used as Comment

----------------------------------------------------------
---------------------
Christian Education
Disk
Data Disk
E Disk
F Disk
LexmarkO Print Lexmark Optra SC 1275
PS
NETLOGON Disk Logon server share
SYSVOL Disk Logon server share
The command completed successfully.


C:\>

Thank YOU,

by using this I realized that the 'D' Drive was
labeled 'Data$', which is the name of the folder that
resides on it. When I shared it out as 'D$' the problem
went away.

Thank Again,
Cam
 
R

Robert L [MS-MVP]

thank you for posting back with the result.

--
For more and other information, go to http://www.ChicagoTech.net

Don't send e-mail or reply to me except you need consulting services.
Posting on MS newsgroup will benefit all readers and you may get more help.

Robert Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN, Anti-Virus, Tips & Troubleshooting on
http://www.ChicagoTech.net
This posting is provided "AS IS" with no warranties.

Cam said:
This is what it says:

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.


C:\>net view \\
Shared resources at \\



Share name Type Used as Comment

----------------------------------------------------------
---------------------
Christian Education
Disk
Data Disk
E Disk
F Disk
LexmarkO Print Lexmark Optra SC 1275
PS
NETLOGON Disk Logon server share
SYSVOL Disk Logon server share
The command completed successfully.


C:\>

Thank YOU,

by using this I realized that the 'D' Drive was
labeled 'Data$', which is the name of the folder that
resides on it. When I shared it out as 'D$' the problem
went away.

Thank Again,
Cam
-----Original Message-----
what do you get if using net view \\servername?

--
For more and other information, go to http://www.ChicagoTech.net

Don't send e-mail or reply to me except you need consulting services.
Posting on MS newsgroup will benefit all readers and you may get more help.

Robert Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN, Anti-Virus, Tips & Troubleshooting on
http://www.ChicagoTech.net
This posting is provided "AS IS" with no warranties.




.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top