Compatible Support Forums: Login Scripts on WinNT 4.0 Domain

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Login Scripts on WinNT 4.0 Domain

#1 User is offline   TymbrWlf 

  • newbie
  • Group: Members
  • Posts: 26
  • Joined: 29-December 99

Posted 21 June 2001 - 09:25 PM

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
0

#2 User is offline   Halz 

  • newbie
  • Group: Members
  • Posts: 38
  • Joined: 01-August 00

Posted 23 June 2001 - 05:04 AM

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))
0

#3 User is offline   TymbrWlf 

  • newbie
  • Group: Members
  • Posts: 26
  • Joined: 29-December 99

Posted 23 June 2001 - 06:19 AM

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.
0

#4 User is offline   AndyFair 

  • old hand
  • Group: Members
  • Posts: 748
  • Joined: 21-May 01

Posted 25 June 2001 - 03:39 PM

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
0

#5 User is offline   TiNenfant 

  • newbie
  • Group: Members
  • Posts: 28
  • Joined: 12-May 01

Posted 03 July 2001 - 06:53 PM

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users