Last shutdown time

M

me

Hi,
Is it possible to retrieve the last boot or shutdown time from the registry?
I assume the key exists. In this case, is it a win32 feature or a specific
NT feature.

Thanks in advance
Manfred
 
M

Mark V

In said:
Hi,
Is it possible to retrieve the last boot or shutdown time from the
registry? I assume the key exists. In this case, is it a win32
feature or a specific NT feature.

Interesting question. I don't know about "from the registry".
The system up-time (running time) is stored in the registry.

In some cases the pagefile.sys date/time will indicate the bootup time.
Not certain how reliable that is.

The registy system hive files on disk would have a shutdown date/time
stamp if you could view them from outside the OS. But you could use a
system shutdown script to create a stamped file perhaps. e.g.
type nul>%systemdrive%\filename

The same could be done with a system startup script.
 
M

Mark V

In said:
Hi,
Is it possible to retrieve the last boot or shutdown time from the
registry? I assume the key exists. In this case, is it a win32
feature or a specific NT feature.

Interesting question. I don't know about "from the registry".
The system up-time (running time) is stored in the registry.

In some cases the pagefile.sys date/time will indicate the bootup time.
Not certain how reliable that is.

The registy system hive files on disk would have a shutdown date/time
stamp if you could view them from outside the OS. But you could use a
system shutdown script to create a stamped file perhaps. e.g.
type nul>%systemdrive%\filename

The same could be done with a system startup script.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top