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 ...
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.
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
This subject has been archived. New comments and votes cannot be submitted.
Jun 21
Jul 3
0
3 minutes
Responses to this topic
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))
Are the Win9x machines members of your domain? (not the users loging on, the *machines* (by name))
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.
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
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
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.
***** 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.