Page 1 of 2 12>
Topic Options
#70985 - 2002-10-21 08:20 PM Windows 95 logoff/restart options
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I have found it extremely difficult to coordinate a forced logoff or restart via logon script in Windows 95. Does anyone have a fairly reliable solution? I've tried using Run and RunOnce registry keys, and although they work somewhat okay, there is still an issue if someone has connected to a share. It asks you if you want to disconnect users. Other than this issue, it works okay. Does anyone have experience in bypassing this problem? Or an alternative?

Brian

Top
#70986 - 2002-10-21 08:24 PM Re: Windows 95 logoff/restart options
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
upgrade to win2k?
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#70987 - 2002-10-21 08:25 PM Re: Windows 95 logoff/restart options
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I wish... that is not currently an option for everyone. We have ongoing upgrades for many of the users, but not all.

Brian

Top
#70988 - 2002-10-21 08:40 PM Re: Windows 95 logoff/restart options
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Here are some RunDLL32 options (all should be Win 9x compatible):

code:
This will unload the Kernel, which will result in the shut down of windows.

RunDLL32.EXE krnl386.exe,exitkernel

code:
This will unload the Kernel, which will result in the shut down of windows.

RunDLL32.EXE USER.DLL,exitwindows

code:
This will reboot the computer without any dialog boxes

RunDLL32.EXE SHELL32.DLL,SHExitWindowsEx 2

code:
This will power the computer down (If the hardware is compatible with a power down command)

RunDLL32.EXE SHELL32.DLL,SHExitWindowsEx 1

code:
This will log the current user off without any dialog boxes.

RunDLL32.EXE SHELL32.DLL,SHExitWindowsEx 0


Top
#70989 - 2002-10-21 09:37 PM Re: Windows 95 logoff/restart options
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
There are various logoff & reboot utilities out there, we use one called "shutdown.exe" but as to its origin that is lost in time. We probably got it from the JSI FAQ or the NONAGS site since those are our main sources for utility info. I am sure that there is something out there though so try searching.

[ 21. October 2002, 21:38: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#70990 - 2002-10-21 09:50 PM Re: Windows 95 logoff/restart options
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I've checked out a few, but it seems like everything has a weakness. Some make the machine lock up on shutdown, some have prompts you can't get rid of, some can't close all programs, some don't leave explorer open while trying to log off.... I'm still working on it, though.

Brian

Top
#70991 - 2002-10-21 10:25 PM Re: Windows 95 logoff/restart options
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
I am not sure if this will help but try these:

See Reboot95.exe

See Shutdown.exe

Here is an MS article on shutdown problems in Win98. It is one of a large series.

http://support.microsoft.com/default.aspx?scid=KB;EN-US;q202633&
_________________________
Jack

Top
#70992 - 2002-10-21 11:23 PM Re: Windows 95 logoff/restart options
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
We don't have ANY Windows 98 machines, so most of the articles pertinent to Windows 98 don't help at all. The reboot95.exe is a utility that I've utilized in the past. What I really need, though, is a utility to disconnect users from local shares. The reboot utilities I have work just fine from the RUNONCE key under HKLM, except if a remote user is connected to a local share. Then it asks if you would like to disconnect the users. Because the script has already finished, it's not possible for me to click on the button to disconnect users. I suppose I could have a wkix script in the runonce that runs the shutdown utility, then if the disconnect users window pops up, I can use a sendkeys function to select the correct choice. In the meantime, I might need to have a program that disabled the keyboard input.

Brian

Top
#70993 - 2002-10-22 04:10 PM Re: Windows 95 logoff/restart options
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
From what I understand most of the Win98 info is pertinent to Win95. If you truly want a keyboard lock out utility try Brad Jackson's utility site.

I am a bit confused. If you are using the runonce key to call the reboot program, how is the remote client logging into the local share before logon completes?

I am sure this is resolvable but unfortunately I currently don't have a lot of time to invest in the topic although I might in the near future since we are doing some upgrading.

Perhaps others can offer other options.
_________________________
Jack

Top
#70994 - 2002-10-22 04:29 PM Re: Windows 95 logoff/restart options
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
The Windows 98 stuff for shutdown doesn't work well on Windows 95 in my experience. If you have another machine mapping drives to the local machine with the share, a reboot will not work without asking the user if they want to disconnect everyone. Remote clients can connect to local shares prior to logon. All that matters is if the Client for Microsoft Networks has been loaded.

At this point, I'm fiddling around with AutoIT to see if there is an alternative way to go about this.

Brian

Top
#70995 - 2002-10-22 04:52 PM Re: Windows 95 logoff/restart options
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
It is my understanding that there are subtle changes to the restart/shutdown features throughout the Win95 & Win98 product lines. Thus the results for Win95 OEM, SP1, OSR2, OSR2.1 & OSR 2.5 & Win98 FE & SE can all be subtly different. Also, I believe there are Win95 system patches directly related to this issue & thus introducing further confusion. In my limited experience, I am not sure that there is a great deal of difference between a fully patched version of Win95 OSR2.5 & the original OEM release of Win98. They are very close relatives.

I not sure these points are relevant thought since I suspect this isn’t a Win95 versus Win98 issue rather I suspect it is a generic Win9x issue.

I wish that I had more time to investigate & help you on this. Two years ago, I could of discussed this issue in great detail but it has been a while since I worked on the issue.
_________________________
Jack

Top
#70996 - 2002-10-22 05:02 PM Re: Windows 95 logoff/restart options
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Thanks for your help, though. I appreciate the time. So far, AutoIT has worked pretty well. I call it from the RunOnce key in the registry, and I can also display a message notifying the user that their PC is shutting down.

Brian

Top
#70997 - 2002-10-22 05:18 PM Re: Windows 95 logoff/restart options
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Isn't this covered in the FAQ Section and under the heading of - Shutdown/Restart - options?

Regards,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#70998 - 2002-10-22 05:40 PM Re: Windows 95 logoff/restart options
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Well, it's sort of covered, but Windows 95 is still flaky with the methods described. I have experimented with various alternatives, including calling a .inf install to force a reboot. The only solution to this point that seems to handle my situation properly is using the AutoIT shutdown command.

Brian

Top
#70999 - 2002-10-22 07:28 PM Re: Windows 95 logoff/restart options
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
About the only option missed was FDISK. That is about the best cure I know for all Wintendo plagues.

I think we should start another forum. Maybe Wintendo Whiners would be a good name.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#71000 - 2002-10-22 07:42 PM Re: Windows 95 logoff/restart options
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
les, didn't rad suggest that as first option?
or did I miss something???

anyway, if you have issues with win95, you can do as I, speak to your boss:
"no, win95 does not work with any admin software."
"no, I do not have time to visit every machine by myself"
"I can quit if you want, but try to find someone to support your win95 needs with my salary!"

it got me out of hell.
no support for win9x line (windows 95/98/ME) anymore at our lan!

I hate and will keep on hating systems that are trouble to me.
at the moment, xp seems to have specs that can make it one of those systems. we have only 1 xp and seems that for next 6 months at least, it will be the only one (and it's a test wksta!)

if company wants to make profit, it will listen to your comments. (<-that is a dot) nothing more.

to be short:

support it as much as you can easily do.
if it wastes your time, say it aloud and refuse to dirt your hands in ****

simple.

[ 22. October 2002, 19:43: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#71001 - 2002-10-22 08:19 PM Re: Windows 95 logoff/restart options
Waltz Offline
Seasoned Scripter

Registered: 2002-08-01
Posts: 485
Loc: Waterloo, Ontario, Canada
Hey, c'mon Lonkero - don't hold back...
Tell us what you really think about Win9x [Wink]

[ 22. October 2002, 22:22: Message edited by: Waltz ]
_________________________
We all live in a Yellow Subroutine...

Top
#71002 - 2002-10-22 08:51 PM Re: Windows 95 logoff/restart options
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
waltz,
you shouldn't held back either.
who you are meaning with the comment [Razz]
_________________________
!

download KiXnet

Top
#71003 - 2002-10-22 09:10 PM Re: Windows 95 logoff/restart options
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
First time I have read that FAQ on shutdown & must say it is seems pretty though. If you can not find an answer there then you might as well continue with your autoit solution since I doubt there is a solution.

Very well done FAQ Kent. [Wink]

Guys, you never miss a opportunity for a win9* rant [Razz]

[ 22. October 2002, 21:13: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#71004 - 2002-10-22 09:28 PM Re: Windows 95 logoff/restart options
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Jooel,
OK, Rad was close... by upgrade he most likely means scrub and install (FDISK)...

I dunno, might suggest even a low-level format just to be sure there's no trace of Wintendo left...

Did I ever mention I hate Wintendo?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 2 12>


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1782 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.073 seconds in which 0.027 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org