Solved

c# solution to detect that windows 7 pro is fully started from cold boot

Posted on 2014-12-08
2
248 Views
Last Modified: 2014-12-10
Hi,

I need a c# solution to detect when windows 7 pro is fully started (loaded) from a cold boot.

I need to know that all device drivers and network cards are loaded and up and running.

Thank you.
0
Comment
Question by:SkyMagic
2 Comments
 
LVL 11

Accepted Solution

by:
andreas earned 250 total points
ID: 40488254
Try

net stats srv

the first line of output shows the date and time of startup.

But it cant detect if the machine was totally off (powered down). I'm not aware if there is even a method to reliably detect if a machine was just restarted or powered on.
0
 
LVL 6

Assisted Solution

by:Rob G
Rob G earned 250 total points
ID: 40489026
You can do this based on Event ID's as well, but i believe that Andrea's is correct, you really have no way of telling if the system was rebooted, or shutdown and started back up. Unless you have some kind of Smart Boot Bios software that will detail that information.

Event ID's
System Log = Event ID 13 Down
System Log = Event ID 12 UP
System Log = Event ID 1 = Time Configuration when the NIC comes available.

Application Log = Event ID 1532 = down
Application Log = Event ID 1531 = UP

To find out if the drivers are all loaded up..

Open a Command Prompt and type in DriverQuery
It will load up a list of all drivers and when they were loaded into windows.

As per telling when, or the process in which what drivers are loaded in what direction, if you do an SOS boot off of the MSConfig, You can also force windows to write all the boot information to a log file, which i assume you could just use to copy to a location so you can see the boot information, but doing it cleanly, through c# might prove to be more difficult then using the "Windows" way..
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Capture image using MDT 21 44
Windows mapped drive communications - Secure? 5 48
IEnumerable<T> to a List<T> 8 40
Outlook 2010 and delayed messages in out box 7 22
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question