Jump to content
Compatible Support Forums
Sign in to follow this  
TymbrWlf

Login Scripts on WinNT 4.0 Domain

Recommended Posts

I have small Windows domain at work (12 computers). All

of the machines were running Win98SE and I am in the

process of migrating these boxes over to Win2K Pro.

 

I have set up a login script that does three things:

Syncs time with the PDC,

removes all mapped network drives,

and then re-maps to network shares

(so everyone is mapped the same way).

 

This script works like a charm on the machines with

Win2K, but on the Win98 machines, the popup window

is there, like the script is running but after it

finishes, the machine is still not mapped properly.

 

If I go to the netlogon directory on my PDC and run

the .bat file, it works just fine. But it's not

executing properly on logon. Any ideas?

 

Here's my logon script

(I've removed the actual machine names):

 

@echo off

net time \\<PDC> /set /y

 

net use /delete * /y

 

net use H: "\\<Server1>\Archive"

net use I: "\\<Server1>\Gfx"

net use J: "\\<Server1>\Home Folders"

net use K: "\\<Server1>\Shared Data"

 

This is really only a minor problem, until I can

finish getting everyone running Win2K, but it's

pretty annoying. confused

Share this post


Link to post

I've seen the same issue (with 1400+ machines on a 2k domain, some Win2k, some 9x, some everything else)

 

Are the Win9x machines members of your domain? (not the users loging on, the *machines* (by name))

Share this post


Link to post

Yes. I have added all of the Win98 boxes in the server manager. I've narrowed it down to the "net use * /delete" line. For some reason, when the Win98 box gets to that line, the script exits. I've managed a work-around (I set up two scripts; one with the /delete line and one without it). This is just an annoying problem, but one the will be a non-issue once I get all of the boxes migrated over to Win2K. GAWD!! I hate Win98. Thanks for the reply.

Share this post


Link to post

I think the script is bombing because you're trying to delete a mapped drive that doesn't exist.

I have all our logon scripts so that they look like:

 

IF EXIST X:\*.* NET USE X: /DELETE

 

What this does is check whether the mapped drive exists, and if so, deletes it - it won't try to delete a non-existant map, so the script won't bomb out.

 

Hope this helps

AndyF

Share this post


Link to post

The best is to delete just the drives that you need one by one or NET USE * /D /Y

 

***** Begin Here *****

 

@Echo Off

 

:UMap

Net Use X: /d /y

Net Use F: /d /y

...

 

:Map

Net Use X: \\server1\share1 /y

Net Use F: \\server1\share2 /y

...

 

:End

Exit

 

***** End Here *****

 

Regards.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×