As Eric Albert writes, logon scripts definitely work on Win98
PCs. However . . . I have come across one machine in a client's
network that would not execute the logon script, no matter what.
All the other ones in the same office (all of them Win98 PCs)
performed as expected.
Instead of spending massive amounts of time in trying to
fix the problem, you can walk around it by adopting Haggis'
suggestion while at the same time avoiding the administrator's
update nightmare. Code your logon script like so:
@echo off
rem do not modify the following line in any way. It is here in
rem order to force the logon script to run on Joe Blow's PC.
rem 10 December 2003 Adam Smith
if exist "c:\windows\start menu\programs\startup\netlogon.bat"
copy \\YourServer\netlogon\netlogon.bat
"c:\windows\start menu\programs\startup\netlogon.bat" > nul
(the code above is one long line)
.. . . (other lines in your logon script)
Now copy netlogon.bat (or whatever the name of your logon
script is) to the startup folder on the problem machine. This
will have two consequences:
- Your logon script will now execute, because it's in the "startup"
folder.
- Any updates to the logon script will automatically update the local
version of the script.
You might find that the logon script process will not close on
termination. It's one of these silly W9x things. If so, place it
somewhere else, create a .pif file in the startup folder that points
to it, adjust the .pif file properties so that it closes by itself when
finished, and adjust the batch file to reflect the new location.
I hope that this solution cures you from your death wish!
"Adam" <(E-Mail Removed)> wrote in message
news:0fd401c3be62$8c6de2b0$(E-Mail Removed)...
> Yes, I've already done all that. The problem is that the
> script doesn't run. I said in my original post, that the
> script exists, and is specified under user properties, the
> problem is that it doesn't run when I login using a win98
> pc. If I login using a w2k pc, the script runs fine.
>
> I know that the script would work on the win98 machine if
> it would only run because after I logong using the win98
> pc, if I run \\server\netlogon\script.bat , the script
> runs, and the program executes.
>
> I've been told that win98 and win95 OS's don't support
> logon scripts? Is this correct? I've heard of other
> people getting them to work.
>
> NOTE-I will NOT be using the clients startup folder as a
> solution to this problem. As it's been pointed out, this
> would be a NetAdmin NIGHTMARE.
I could die happy if I
> never heard that ignorant suggestion again.
>
>
> >-----Original Message-----
> >The logon scripts on w2k servers are kept in the
> >winnt\sysvol\sysvol\yourdomainname\scripts folder (you'll
> >see the scripts folder shared when you navigate to it.
> >Make your logon script using notepad or something like
> >it, name it something.bat, save it in the above folder,
> >then go to that user and put the name in the logon script
> >box of that user. When you logon as that user on the
> >domain, the script should run.
> >
> >
> >>-----Original Message-----
> >>I have a Win98 pc that I use to log on to a W2K server.
> >I
> >>put a login script in the "logon script" box under
> >>the "profile" tab in the properties page for the user
> >>object. I logon using that user name on the win98 pc,
> >and
> >>the script does not run. Yet, if I logon using a w2k
> >pc,
> >>the script runs. I've seen KB274442 and that issue
> >>doesn't seem to apply here because the logon script is
> >>a .bat file. Anyone have any ideas?
> >>.
> >>
> >.
> >