Net Use - help needed

  • Thread starter John Leonard - Sage
  • Start date
J

John Leonard - Sage

Having a problem with Net Use with Windows 2003.

I share the psdata folder on the server

I have roaming profiles (they show up ok) and have setup the logon script
path as follows:
I map a drive (L: on the server) to the shared file that has the Bat file.
I have the logon script file location, in the roming profile, for the user,
as L:/pslogon.bat.

My pslogon.bat is:
@echo off
net use s: \\gateway\psdata
exit

I am expecting to see the mapped dive S: on the client, after logon..
This will not work?

What am I doing wrong???
 
R

Ray Costanzo [MVP]

At what part is it failing? Instead of setting a logon script to
L:\pslogon.bat, just set it to pslogon.bat and put the file in
\\domaincontroller\netlogon

Ray at work
 
J

John Leonard - Sage

How do I get access to netlogon?

I can see it using windows explorer on the client, but not on the server?
 
R

Ray Costanzo [MVP]

Well, even on the server, you can just access \\%computername%\netlogon, or
go directly to the path locally, which, in 2000, is
%windir%\SYSVOL\sysvol\<Domain Name>\scripts, I believe.

Ray at work
 
J

John Leonard - Sage

Ray Thanks

I am uising Windows 2003 Enterprise and I see that they say "If it is
missing - create it" apppently it can be seen on the Client network, but not
on the server until you make a shared folder "Netlogon"?

Thanks again
 
R

Ray Costanzo [MVP]

Is this on a domain controller? Before you go creating anything, open up a
command prompt (cmd.exe) and enter this:

NET SHARE

That will give you a listing of the shares on the machine and their
corresponding local paths.

Ray at work
 
J

John Leonard - Sage

Yes Ray, it is on the domain controller.

The shares look ok.

When I execute the net share from the client - it works.

It does not want to work from the logon script.

I removed the map to L: , because the path is to the NETLLOGON shared drive
at %windir%\SYSVOL\sysvol\<Domain Name>\scripts.

When I look at the share under Computer Mangement - it appears there ok?
 
J

John Leonard - Sage

Correction

When I execute the NET USE command from the client - it works.
Spelling NETLOGON is correct nto NETLLOGON

In any case the NETLOGON share does exist - I see it via MMC.

I can not figure out why the client does not get the MAP?

When I execute/cmd it from the client Net Use does set up the map.

Any and all thoughts are welcome and appreciated.

Thx
 

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