Skip to content

Commit

Permalink
Get System Report version 17.11.09.1 (Public version on GitHub)
Browse files Browse the repository at this point in the history
- fixed bug in public release of script to configuration file;
- added information about used configuration file to script output;
- added information about used configuration file to log file;
- added two example reports to /examples/ folder; more information about example reports you can find in [ReadMe.md](https://github.com/michalzobec/PowerShell/blob/master/Get-SystemReport/readme.md);
- updated/extended example configuration file;
- documentation update in files readme.md and changelog.md;
  • Loading branch information
Michal Zobec committed Nov 9, 2017
1 parent 482ac1b commit ad03bfd
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 10 deletions.
12 changes: 7 additions & 5 deletions Get-SystemReport.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Release notes is in file changelog.md.
HTML table with selected level of events in filename format <HOSTNAME>-<DATE>-<TIME>.html.
.EXAMPLE
C:\> get-systemreport.ps1
C:\> Get-SystemReport.ps1
.LINK
http://www.michalzobec.cz/
Expand All @@ -29,13 +29,13 @@ Set-StrictMode -Version Latest

######
$ScriptName = "Get System Report"
$ScriptVersion = "17.11.08.1"
$ScriptVersion = "17.11.09.1"
######


######
# External configuration file
$ConfigurationFileName = "get-systemreport-config-zobec.ps1"
$ConfigurationFileName = "Get-SystemReport-Config-Example.ps1"
######

$ScriptDir = (Split-Path $myinvocation.MyCommand.Path)
Expand Down Expand Up @@ -83,7 +83,7 @@ Write-Host "Initializing script"

# Definition of the log file - save method without subdirectory
$LogDate = Get-Date -Format "yyyyMMdd"
$LogFile = $ScriptDir + "\get-systemreport-log-$LogDate.txt"
$LogFile = $ScriptDir + "\Get-SystemReport-log-$LogDate.txt"

$LogFileDir = $ScriptDir + "\logs"
if (!(Test-Path $LogFileDir -pathType container)) {
Expand All @@ -98,7 +98,7 @@ if (!(Test-Path $LogFileDir -pathType container)) {
}

# Redefinition of the log file with LogFileDir
$LogFile = $LogFileDir + "\get-systemreport-log-$LogDate.txt"
$LogFile = $LogFileDir + "\Get-SystemReport-log-$LogDate.txt"

$CfgFilePath = $ScriptDir + "\config\$ConfigurationFileName"
if (!(Test-Path $CfgFilePath)) {
Expand All @@ -107,6 +107,7 @@ if (!(Test-Path $CfgFilePath)) {
Write-Log -LogFile $LogFile -Message " Unexpected exit." -Level ERROR
exit
}
Write-Host "Configuration file $ConfigurationFileName"
. $CfgFilePath

# Environment
Expand Down Expand Up @@ -153,6 +154,7 @@ Write-Log -LogFile $LogFile -Message " OsLastBoot: $OsLastBoot" -Level DEBUG
Write-Log -LogFile $LogFile -Message " SystemTime: $SystemTime" -Level DEBUG
Write-Log -LogFile $LogFile -Message " UpTime: $UpTime" -Level DEBUG
Write-Log -LogFile $LogFile -Message " Report filename: $HtmlFile" -Level DEBUG
Write-Log -LogFile $LogFile -Message " Configuration file: $ConfigurationFileName" -Level DEBUG
Write-Log -LogFile $LogFile -Message " Log filename: $LogFile" -Level DEBUG
Write-Log -LogFile $LogFile -Message " PowerShell version: $PSVersion" -Level DEBUG
Write-Log -LogFile $LogFile -Message " ExtPsWinPkFile: $ExtPsWinPkFile" -Level DEBUG
Expand Down
15 changes: 14 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ web: www.michalzobec.cz, mail: [email protected]
License: Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
https://creativecommons.org/licenses/by-sa/4.0/

# DOCUMENTATION
Documentation you can find in file [ReadMe.md](https://github.com/michalzobec/PowerShell/blob/master/Get-SystemReport/readme.md).

# Release History

## version 17.07.27.1
- init version;

Expand Down Expand Up @@ -145,7 +150,7 @@ https://creativecommons.org/licenses/by-sa/4.0/
- code refactoring, cleaned some parts of code;
- header content from PS script was moved to separate files readme.md and changelog.md;

## version 17.11.08.1
## version 17.11.08.1 (Public version on GitHub)
- added new section Windows Firewall Status;
- added new section AntiVirus Status;
- added new section Windows Task Scheduler Failed Tasks;
Expand All @@ -154,6 +159,14 @@ https://creativecommons.org/licenses/by-sa/4.0/
- code refactoring, minor changes;
- small updates in files readme.md and changelog.md;

## version 17.11.09.1 (Public version on GitHub)
- fixed bug in public release of script to configuration file;
- added information about used configuration file to script output;
- added information about used configuration file to log file;
- added two example reports to /examples/ folder; more information about example reports you can find in [ReadMe.md](https://github.com/michalzobec/PowerShell/blob/master/Get-SystemReport/readme.md);
- updated/extended example configuration file;
- documentation update in files readme.md and changelog.md;

# TODO
- added Security Windows Eventlog (failed only);
- fix problem with detection of Domain & WorkGroup;
Expand Down
1 change: 1 addition & 0 deletions config/get-systemreport-config-example.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ $SkipEventIDlist = (400, 4999)
$SkipServicesName = ("Garmin Device Interaction Service", "DoSvc")
# skip windows tasks/jobs
$SkipTaskName = ("Notifications", "SilentCleanup")
# custom variables - end
######

######
Expand Down
26 changes: 26 additions & 0 deletions examples/Example-Report-01.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<html>
<style>
BODY{font-family: Verdana; font-size: 8pt; align: left}
H1{font-size: 18px;}
H2{font-size: 16px;}
H3{font-size: 14px;}
H4{font-size: 12px;}
TABLE{border: 1px solid black; border-collapse: collapse; font-size: 8pt;}
TH{border: 1px solid black; background: #dddddd; padding: 5px; color: #000000;}
TD{border: 1px solid black; padding: 5px; }
td.pass{background: #7FFF00;}
td.warn{background: #FFE600;}
td.fail{background: #FF0000; color: #ffffff;}
td.info{background: #85D4FF;}
</style>
<body>
<h1>System Report ZOBECV17063406.zobec.local</h1>
<p>Device role (Computer Description): ZOBECV17063406 Desktop Test [Win10EntLTSB x64] [TEST]</p>
<p>Generated: 09.11.2017 11:51:59</p><p>System report for ZOBECV17063406 from 08.11.2017 11:51:59 to 09.11.2017 11:51:59.</p> <br /> <h3>Operating System Information</h3> <table> <colgroup><col/><col/><col/><col/><col/><col/><col/><col/><col/><col/><col/><col/></colgroup> <tr><th>Operating System</th><th>Architecture</th><th>Version</th><th>Install Date</th><th>Last Boot</th><th>UpTime</th><th>Time Zone</th><th>Device Role (Computer Description)</th><th>Registered User</th><th>Registered Organization</th><th>Windows Serial Number</th><th>Product Key</th></tr> <tr><td>Microsoft Windows 10 Enterprise 2016 LTSB</td><td>64bitov&#253;</td><td>10.0.14393</td><td>10.06.2017</td><td>09.11.2017 11:44</td><td>0 days 0 hours 8 minutes</td><td>(UTC+01:00) Praha, Bratislava, Budapešť, Bělehrad, Lublaň</td><td>ZOBECV17063406 Desktop Test [Win10EntLTSB x64] [TEST]</td><td>Uživatel syst&#233;mu Windows</td><td></td><td>00380-(cenzored)-AA469</td><td>H73H9-(cenzored)-TFVP7</td></tr> </table> <br /> <h2>Stopped Services Information</h2> <table> <colgroup><col/><col/><col/><col/></colgroup> <tr><th>DisplayName</th><th>Name</th><th>StartType</th><th>Status</th></tr> <tr><td>Spr&#225;vce stažen&#253;ch map</td><td>MapsBroker</td><td>Automatic</td><td>Stopped</td></tr> <tr><td>Ochrana softwaru</td><td>sppsvc</td><td>Automatic</td><td>Stopped</td></tr> <tr><td>Biometrick&#225; služba syst&#233;mu Windows</td><td>WbioSrvc</td><td>Automatic</td><td>Stopped</td></tr> </table> <br /> <h2>Windows Firewall Status</h2> <table> <colgroup><col/><col/><col/><col/><col/><col/><col/></colgroup> <tr><th>Firewall Profile Name</th><th>Enabled</th><th>DefaultInboundAction</th><th>DefaultOutboundAction</th><th>LogAllowed</th><th>LogBlocked</th><th>LogIgnored</th></tr> <tr><td>Domain</td><td>True</td><td>NotConfigured</td><td>NotConfigured</td><td>False</td><td>False</td><td>NotConfigured</td></tr> <tr><td>Private</td><td>True</td><td>NotConfigured</td><td>NotConfigured</td><td>False</td><td>False</td><td>NotConfigured</td></tr> <tr><td>Public</td><td>True</td><td>NotConfigured</td><td>NotConfigured</td><td>False</td><td>False</td><td>NotConfigured</td></tr> </table> <br /> <h2>AntiVirus Status</h2> <table> <colgroup><col/><col/><col/></colgroup> <tr><th>Antivirus name</th><th>Definition status</th><th>Real-time protection status</th></tr> <tr><td>Windows Defender</td><td>Up to date</td><td>Enabled</td></tr> </table> <br /> <h2>Windows Task Scheduler Failed Tasks</h2> <p>Following tasks last run failed and maybe needs your attention.</p> <table> <colgroup><col/><col/><col/><col/><col/><col/></colgroup> <tr><th>TaskName</th><th>TaskPath</th><th>LastRunTime</th><th>LastTaskResult</th><th>NextRunTime</th><th>NumberofMissedRuns</th></tr> <tr><td>AD RMS Rights Policy Template Management (Manual)</td><td>\Microsoft\Windows\Active Directory Rights Management Services Client\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>appuriverifierinstall</td><td>\Microsoft\Windows\ApplicationData\</td><td>11.10.2017 14:47:47</td><td>2147946720</td><td>11.11.2017 3:00:00</td><td>4</td></tr> <tr><td>UninstallDeviceTask</td><td>\Microsoft\Windows\Bluetooth\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>UserTask-Roam</td><td>\Microsoft\Windows\CertificateServicesClient\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>CreateObjectTask</td><td>\Microsoft\Windows\CloudExperienceHost\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>Data Integrity Scan</td><td>\Microsoft\Windows\Data Integrity Scan\</td><td>30.11.1999 0:00:00</td><td>267011</td><td>26.11.2017 14:50:50</td><td>0</td></tr> <tr><td>Data Integrity Scan for Crash Recovery</td><td>\Microsoft\Windows\Data Integrity Scan\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>dusmtask</td><td>\Microsoft\Windows\DUSM\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>EDP App Launch Task</td><td>\Microsoft\Windows\EDP\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>EDP Auth Task</td><td>\Microsoft\Windows\EDP\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>WindowsActionDialog</td><td>\Microsoft\Windows\Location\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>MapsToastTask</td><td>\Microsoft\Windows\Maps\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>WiFiTask</td><td>\Microsoft\Windows\NlaSvc\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>MNO Metadata Parser</td><td>\Microsoft\Windows\Mobile Broadband Accounts\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>GatherNetworkInfo</td><td>\Microsoft\Windows\NetTrace\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>ProcessMemoryDiagnosticEvents</td><td>\Microsoft\Windows\MemoryDiagnostic\</td><td>11.10.2017 14:52:52</td><td>2147946720</td><td></td><td>0</td></tr> <tr><td>Device Install Reboot Required</td><td>\Microsoft\Windows\Plug and Play\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>SystemSoundsService</td><td>\Microsoft\Windows\Multimedia\</td><td>09.11.2017 11:49:49</td><td>267009</td><td></td><td>0</td></tr> <tr><td>Sysprep Generalize Drivers</td><td>\Microsoft\Windows\Plug and Play\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>shell</td><td>\Microsoft\Windows\rempl\</td><td>30.11.1999 0:00:00</td><td>267011</td><td>10.11.2017 10:32:32</td><td>0</td></tr> <tr><td>shell-unlock</td><td>\Microsoft\Windows\rempl\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>FamilySafetyRefreshTask</td><td>\Microsoft\Windows\Shell\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>FamilySafetyMonitor</td><td>\Microsoft\Windows\Shell\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>StartComponentCleanup</td><td>\Microsoft\Windows\Servicing\</td><td>16.10.2017 8:39:39</td><td>2147942402</td><td></td><td>0</td></tr> <tr><td>Storage Tiers Management Initialization</td><td>\Microsoft\Windows\Storage Tiers Management\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>SpaceManagerTask</td><td>\Microsoft\Windows\SpacePort\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>SpaceAgentTask</td><td>\Microsoft\Windows\SpacePort\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>ResPriStaticDbSync</td><td>\Microsoft\Windows\Sysmain\</td><td>16.10.2017 9:13:13</td><td>2147942402</td><td></td><td>0</td></tr> <tr><td>Interactive</td><td>\Microsoft\Windows\Task Manager\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>ForceSynchronizeTime</td><td>\Microsoft\Windows\Time Synchronization\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>MsCtfMonitor</td><td>\Microsoft\Windows\TextServicesFramework\</td><td>09.11.2017 11:49:49</td><td>267009</td><td></td><td>0</td></tr> <tr><td>SynchronizeTime</td><td>\Microsoft\Windows\Time Synchronization\</td><td>16.10.2017 8:39:39</td><td>1056</td><td></td><td>0</td></tr> <tr><td>Reboot</td><td>\Microsoft\Windows\UpdateOrchestrator\</td><td>12.10.2017 5:10:10</td><td>259</td><td></td><td>0</td></tr> <tr><td>MusUx_UpdateInterval</td><td>\Microsoft\Windows\UpdateOrchestrator\</td><td>11.10.2017 14:47:47</td><td>1</td><td></td><td>0</td></tr> <tr><td>USO_UxBroker_ReadyToReboot</td><td>\Microsoft\Windows\UpdateOrchestrator\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>UPnPHostConfig</td><td>\Microsoft\Windows\UPnP\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>WiFiTask</td><td>\Microsoft\Windows\WCM\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>USO_UxBroker_Display</td><td>\Microsoft\Windows\UpdateOrchestrator\</td><td>18.10.2017 4:00:00</td><td>1</td><td></td><td>0</td></tr> <tr><td>ResolutionHost</td><td>\Microsoft\Windows\WDI\</td><td>29.08.2017 14:05:05</td><td>1073807364</td><td></td><td>0</td></tr> <tr><td>BfeOnServiceStartTypeChange</td><td>\Microsoft\Windows\Windows Filtering Platform\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>UpdateLibrary</td><td>\Microsoft\Windows\Windows Media Sharing\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>Automatic App Update</td><td>\Microsoft\Windows\WindowsUpdate\</td><td>30.11.1999 0:00:00</td><td>267011</td><td>09.11.2017 14:02:02</td><td>0</td></tr> <tr><td>sihboot</td><td>\Microsoft\Windows\WindowsUpdate\</td><td>30.11.1999 0:00:00</td><td>267011</td><td></td><td>0</td></tr> <tr><td>sih</td><td>\Microsoft\Windows\WindowsUpdate\</td><td>19.10.2017 15:10:10</td><td>2379777</td><td>10.11.2017 8:26:26</td><td>25</td></tr> <tr><td>Automatic-Device-Join</td><td>\Microsoft\Windows\Workplace Join\</td><td>09.11.2017 11:50:50</td><td>1</td><td></td><td>0</td></tr> <tr><td>CacheTask</td><td>\Microsoft\Windows\Wininet\</td><td>09.11.2017 11:49:49</td><td>267009</td><td></td><td>0</td></tr> </table> <br /> <h2>Network Information</h2> <table> <colgroup><col/><col/><col/></colgroup> <tr><th>Name</th><th>DnsHostName</th><th>Domain</th></tr> <tr><td>ZOBECV17063406</td><td>ZOBECV17063406.zobec.local</td><td>zobec.local</td></tr> </table> <br /> <h2>Device Information</h2> <h3>Hardware Information</h3> <table> <colgroup><col/><col/><col/><col/><col/><col/><col/><col/></colgroup> <tr><th>Manufacturer</th><th>Model</th><th>Serial Number</th><th>CPU Name</th><th>Physical Processors</th><th>Physical Cores</th><th>All Cores</th><th>Physical Memory (MB)</th></tr> <tr><td>Microsoft Corporation</td><td>Virtual Machine</td><td>3258-6185-5903-9773-3555-5322-61</td><td>Intel(R) Core(TM) i7 CPU 870 @ 2.93GHz</td><td>1</td><td>3</td><td>3</td><td>1461</td></tr> </table> <br /> <h3>Disk Information</h3> <table> <colgroup><col/><col/><col/><col/><col/><col/><col/><col/><col/></colgroup> <tr><th>Caption</th><th>InterfaceType</th><th>MediaType</th><th>SerialNumber</th><th>Name</th><th>SCSILogicalUnit</th><th>SCSIPort</th><th>Partitions</th><th>Total Size (GB)</th></tr> <tr><td>Virtu&#225;ln&#237; disk společnosti Microsoft</td><td>SCSI</td><td>Fixed hard disk media</td><td></td><td>\\.\PHYSICALDRIVE0</td><td>0</td><td>0</td><td>3</td><td>126,99</td></tr> </table> <br /> <h3>Volume Information</h3> <div id="volume"> <table> <colgroup><col/><col/><col/><col/><col/><col/></colgroup> <tr><th>Label</th><th>Name</th><th>SystemVolume</th><th>Total Size (GB)</th><th>Free Space (GB)</th><th>Free space (%)</th></tr> <tr><td>Obnoven&#237;</td><td>\\?\Volume{92553b9f-db3a-4a12-a3a3-a08f13b4712a}\</td><td>False</td><td>0,44</td><td>0,13</td><td>30</td></tr> <tr><td></td><td>C:\</td><td>False</td><td>126,45</td><td>116,09</td><td>92</td></tr> </table> <br /> </div> <h2>Eventlogs</h2> <h3>Eventlog Security events</h3> <p>No events were found that match the specified selection criteria.</p> <br /> <h3>Eventlog Application Critical events</h3> <p>No events were found that match the specified selection criteria.</p> <br /> <h3>Eventlog Application Error events</h3> <p>No events were found that match the specified selection criteria.</p> <br /> <h3>Eventlog Application Warning events</h3> <p>No events were found that match the specified selection criteria.</p> <br /> <h3>Eventlog System Critical events</h3> <p>No events were found that match the specified selection criteria.</p> <br /> <h3>Eventlog System Error events</h3> <table> <colgroup><col/><col/><col/><col/><col/><col/></colgroup> <tr><th>TimeCreated</th><th>RecordId</th><th>ProviderName</th><th>LevelDisplayName</th><th>Id</th><th>Message</th></tr> <tr><td>09.11.2017 11:51:31</td><td>2119</td><td>Service Control Manager</td><td>Chyba</td><td>7023</td><td>Služba Zjišťov&#225;n&#237; interaktivn&#237;ch služeb byla ukončena s n&#225;sleduj&#237;c&#237; chybou:
Nespr&#225;vn&#225; funkce.</td></tr> <tr><td>09.11.2017 11:51:31</td><td>2118</td><td>Service Control Manager</td><td>Chyba</td><td>7023</td><td>Služba Zjišťov&#225;n&#237; interaktivn&#237;ch služeb byla ukončena s n&#225;sleduj&#237;c&#237; chybou:
Nespr&#225;vn&#225; funkce.</td></tr> <tr><td>09.11.2017 11:51:29</td><td>2117</td><td>Service Control Manager</td><td>Chyba</td><td>7023</td><td>Služba Zjišťov&#225;n&#237; interaktivn&#237;ch služeb byla ukončena s n&#225;sleduj&#237;c&#237; chybou:
Nespr&#225;vn&#225; funkce.</td></tr> </table> <h3>Eventlog System Warning events</h3> <p>No events were found that match the specified selection criteria.</p> <br /><p><br />This report was generated by<br />Get System Report<br />Version 17.11.09.1<br />
(c) 2016-2017 Michal Zobec, ZOBEC Consulting. All Rights Reserved.<br />
web: www.michalzobec.cz, mail: [email protected]<br />
License: Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) https://creativecommons.org/licenses/by-sa/4.0/
<br /></p><p><h4>DEBUG INFO</h4>Report filename: C:\temp\Get-SystemReport-20171109-114713\logs\ZOBECV17063406-20171109-115159.html <br />Log filename: C:\temp\Get-SystemReport-20171109-114713\logs\Get-SystemReport-log-20171109.txt <br />Generated: 09.11.2017 11:51:59 <br /><p>For more informations please check <i>log filename</i>.</p></p></body></html>
Loading

0 comments on commit ad03bfd

Please sign in to comment.