Networking Forums

Networking Forums > Computer Networking > Windows Networking > Logon Script Not Working

Reply
Thread Tools Display Modes

Logon Script Not Working

 
 
Adam
Guest
Posts: n/a

 
      12-08-2003, 12:20 PM
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?
 
Reply With Quote
 
 
 
 
Haggis
Guest
Posts: n/a

 
      12-08-2003, 02:41 PM
put the .bat file in the startup folder , so it runs after logon ?


"Adam" <(E-Mail Removed)> wrote in message
news:06a901c3bd8e$0fb06510$(E-Mail Removed)...
> 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?



 
Reply With Quote
 
Eric Albert
Guest
Posts: n/a

 
      12-08-2003, 11:41 PM
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?
>.
>

 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      12-09-2003, 01:08 AM
To maintain logon scrips, the following simple instruction
will do:

notepad \\YourServer\netlogon\something.bat


"Eric Albert" <(E-Mail Removed)> wrote in message
news:05e001c3bded$3b0a85b0$(E-Mail Removed)...
> 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?
> >.
> >



 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      12-09-2003, 09:38 AM

"Haggis" <(E-Mail Removed)> wrote in message
news:K_0Bb.17337$f7.826964@localhost...
> put the .bat file in the startup folder , so it runs after logon ?


If you place the batch file into the startup folder then you
have to modify it on each and every workstation when some
change is required. An network administrator's nightmare . . .


 
Reply With Quote
 
Adam
Guest
Posts: n/a

 
      12-09-2003, 01:41 PM
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?
>>.
>>

>.
>

 
Reply With Quote
 
Eric Albert
Guest
Posts: n/a

 
      12-09-2003, 10:52 PM
Logon scripts DEFINATELY for with both 95, and 98. I run
several networks using them (and yes it would be hell
without them), but I think you misunderstood my post (or
I misunderstood), the only time that I have seen that
kind of a problem, is if the script is not in the right
folder on the w2k folder. Of course, something like this
is hard to troubleshoot when one is not there to see it.


>-----Original Message-----
>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?
>>>.
>>>

>>.
>>

>.
>

 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      12-10-2003, 01:33 AM
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?
> >>.
> >>

> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No logon script over wan Martin Schweizer Windows Networking 2 06-15-2007 03:25 PM
NET USE logon script Tx2 Home Networking 11 03-13-2007 10:29 PM
Logon script =?Utf-8?B?RGF2ZQ==?= Windows Networking 4 04-22-2004 11:56 PM
Logon script Alan Crawford Windows Networking 0 12-26-2003 10:45 PM
Logon Script Kat Windows Networking 2 10-07-2003 10:01 PM



1 2 3 4 5 6 7 8 9 10 11