Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4324578
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/trunk/report_templates/SOFTWARE_ProfileList.qs b/trunk/report_templates/SOFTWARE_ProfileList.qs
new file mode 100644
index 0000000..4737f45
--- /dev/null
+++ b/trunk/report_templates/SOFTWARE_ProfileList.qs
@@ -0,0 +1,42 @@
+function IsValid(val) {
+ if(typeof val !== 'undefined') return true;
+ else return false;
+}
+
+function print_table_row(cell01,cell02) {
+ println(" <tr><td>",cell01,"</td><td>",cell02,"</td></tr>");
+}
+
+// Global vars
+var val;
+
+println("<html>");
+println(" <head><title>Profile List</title></head>");
+println(" <body style=\"font-size:12\">");
+println(" <h2>Profile List</h2>");
+
+var profile_list=GetRegistryNodes("\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList");
+if(IsValid(profile_list) && profile_list.length>0) {
+ for(var i=0;i<profile_list.length;i++) {
+ println(" <p style=\"font-size:12; white-space:nowrap\">");
+ println(" <u>"+profile_list[i]+"</u><br />");
+ println(" <table style=\"margin-left:20px; font-size:12; white-space:nowrap\">");
+
+ // Get profile image path
+ val=GetRegistryKeyValue("\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList\\"+profile_list[i],"ProfileImagePath");
+ print_table_row("Profile image path:",IsValid(val) ? RegistryKeyValueToString(val.value,val.type) : "n/a");
+
+ // Get last load time (Saved as 2 dwords. Another "good" idea of M$ ;-))
+ var loadtime_low=GetRegistryKeyValue("\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList\\"+profile_list[i],"ProfileLoadTimeLow");
+ var loadtime_high=GetRegistryKeyValue("\\Microsoft\\Windows NT\\CurrentVersion\\ProfileList\\"+profile_list[i],"ProfileLoadTimeHigh");
+ print_table_row("Profile load time:",(IsValid(loadtime_low) && IsValid(loadtime_high)) ? RegistryKeyValueToVariant(loadtime_low.value.append(loadtime_high.value),"filetime",0) : "n/a");
+
+ println(" </table>");
+ println(" </p>");
+ }
+ println(" </table>");
+} else {
+ println(" None");
+}
+
+println("</html>");
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Dec 24, 3:07 AM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1176974
Default Alt Text
(2 KB)
Attached To
Mode
rFRED fred
Attached
Detach File
Event Timeline
Log In to Comment