Solved

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

Posted on 2014-12-08
2
246 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
adobe acrobat scaning 9 46
Not showing JavaScript in the list 5 36
SQL Login 17 38
windows tablets 1 11
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. 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…

914 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now