Hi,
Can anybody provide me the script (VBscript) to check the windows server reboot type, i.e whether the last reboot was a graceful or unexpected.
The script may trap the value (Event ID:6008 = unexpected and Event ID:6006= graceful) from system eventlog and flash the msg. (ref: below)
Or if there is any registry key from where it can be checked, then fine.
Event Type: Error
Event Source: EventLog
Event Category: None
Event ID: 6008
Date: 20/05/2010
Time: 08:30:53
User: N/A
Computer: ABC
Description:
The previous system shutdown at 19:01:39 on 19/05/2010 was unexpected.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Event Type: Information
Event Source: EventLog
Event Category: None
Event ID: 6006
Date: 20/05/2010
Time: 04:15:13
User: N/A
Computer: ABC
Description:
The Event log service was stopped.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Bookmarks