#70985 - 2002-10-21 08:20 PM
Windows 95 logoff/restart options
|
BrianTX
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
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
|
|
Top
|
|
|
|
#70987 - 2002-10-21 08:25 PM
Re: Windows 95 logoff/restart options
|
BrianTX
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.
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
|
|
|
|
#70990 - 2002-10-21 09:50 PM
Re: Windows 95 logoff/restart options
|
BrianTX
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
|
|
|
|
#70992 - 2002-10-21 11:23 PM
Re: Windows 95 logoff/restart options
|
BrianTX
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
|
|
|
|
#70994 - 2002-10-22 04:29 PM
Re: Windows 95 logoff/restart options
|
BrianTX
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
|
|
|
|
#70996 - 2002-10-22 05:02 PM
Re: Windows 95 logoff/restart options
|
BrianTX
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
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
|
|
Top
|
|
|
|
#70998 - 2002-10-22 05:40 PM
Re: Windows 95 logoff/restart options
|
BrianTX
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
|
|
|
|
#71000 - 2002-10-22 07:42 PM
Re: Windows 95 logoff/restart options
|
Lonkero
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
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 1045 anonymous users online.
|
|
|