Login Scripts on WinNT 4.0 Domain

This is a discussion about Login Scripts on WinNT 4.0 Domain in the Windows Networking category; 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 eve ...

Windows Networking 2246 This topic was started by , . Last reply by ,


data/avatar/default/avatar08.webp

26 Posts
Location -
Joined 1999-12-29
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.

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Jun 21
Created
Jul 3
Last Response
0
Likes
3 minutes
Read Time
User User User User
Users

Responses to this topic


data/avatar/default/avatar34.webp

38 Posts
Location -
Joined 2000-08-01
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))

data/avatar/default/avatar08.webp

26 Posts
Location -
Joined 1999-12-29
OP
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.

data/avatar/default/avatar05.webp

748 Posts
Location -
Joined 2001-05-21
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

data/avatar/default/avatar15.webp

28 Posts
Location -
Joined 2001-05-12
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.