Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5344055
SYSTEM_ShutdownTime.qs
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
1 KB
Referenced Files
None
Subscribers
None
SYSTEM_ShutdownTime.qs
View Options
function print_table_row(cell01,cell02) {
println(" <tr><td>",cell01,"</td><td>",cell02,"</td></tr>");
}
// Global vars
var val;
// Get current controlset
var cur_controlset=GetRegistryKeyValue("\\Select","Current");
cur_controlset=RegistryKeyValueToString(cur_controlset.value,cur_controlset.type);
// Current holds a DWORD value, thus we get a string like 0x00000000, but
// control sets are referenced only with the last 3 digits.
cur_controlset="ControlSet"+String(cur_controlset).substr(7,3);
println("<html>");
println(" <head><title>Last known shutdown time</title></head>");
println(" <body style=\"font-size:12\">");
println(" <h2>Last known shutdown time</h2>");
println(" <p style=\"font-size:12; white-space:nowrap\">");
println(" <table style=\"margin-left:20px; font-size:12; white-space:nowrap\">");
print_table_row("Active control set:",cur_controlset);
// Shutdown time
val=GetRegistryKeyValue(cur_controlset+"\\Control\\Windows","ShutdownTime");
print_table_row("Shutdown time:",RegistryKeyValueToVariant(val.value,"filetime"));
println(" </table>");
println(" <br />");
println(" </p>");
println("</html>");
File Metadata
Details
Attached
Mime Type
text/html
Expires
Mon, Jul 14, 1:37 AM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1287946
Default Alt Text
SYSTEM_ShutdownTime.qs (1 KB)
Attached To
Mode
rFRED fred
Attached
Detach File
Event Timeline
Log In to Comment