Solved

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

Posted on 2014-12-08
2
251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

705 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