Page 1 of 1 1
Topic Options
#137566 - 2005-04-08 12:46 PM Reboot Pending
JohnQ Offline
Starting to like KiXtart

Registered: 2003-03-04
Posts: 171
Does anyone know of a way to tell if machine is pending a reboot? As could be the case if software was installed that required a reboot and the user cancelled the reboot.

Thanks

Top
#137567 - 2005-04-08 01:58 PM Re: Reboot Pending
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
HKLM\System\CurrentControlSet\Control\Session Manager | PendingFileRenameOperations

I usually check that value in the registry and if it contains data then the machine is pending a reboot. And i believe someone even wrote a UDF for it...here it is.

CheckUpdateOnReboot

Top
#137568 - 2005-04-08 02:43 PM Re: Reboot Pending
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
someone could also write an udf to overcome that need for reboot.
_________________________
!

download KiXnet

Top
#137569 - 2005-04-08 03:05 PM Re: Reboot Pending
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
Well you could, but i don't think that reg val gets written to just for the fun of it...those files do need to be "renamed". i'd just reboot.
Top
#137570 - 2005-04-08 03:52 PM Re: Reboot Pending
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, many times the proggies just mark reboot for fun.
the installer ppl just didn't bother taking on with proper rename.
_________________________
!

download KiXnet

Top
#137571 - 2005-04-09 04:51 AM Re: Reboot Pending
JohnQ Offline
Starting to like KiXtart

Registered: 2003-03-04
Posts: 171
Thanks maciep
Top
#137572 - 2005-04-09 10:53 PM Re: Reboot Pending
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
See also CheckUpdateOnReboot() - Checks the PendingFileRenameOperations registry value
_________________________
There are two types of vessels, submarines and targets.

Top
#137573 - 2005-04-09 11:19 PM Re: Reboot Pending
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Nice to see you endorse maciep's recommendation.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#137574 - 2005-04-10 12:27 AM Re: Reboot Pending
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Saw the key but not the link
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 271 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.058 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

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