Skip to content

Commit

Permalink
made additional edits to sys info report scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Russell committed Jan 3, 2018
1 parent 6858f97 commit 88c8224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system-info-html-report-local.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This script grabs system information using WMI and outputs it to a HTML report
# File paths
$reportPath = $PSScriptRoot + "\report.html"

$date = Get-Date
# Computer info
$ram = [math]::Round((Get-WmiObject Win32_OperatingSystem | Select -ExpandProperty TotalVisibleMemorySize)/1MB, 2)
$free = [math]::Round((Get-WmiObject Win32_OperatingSystem | Select -ExpandProperty FreePhysicalMemory)/1MB, 2)
Expand All @@ -26,7 +26,7 @@ $computerProps = @{
'Last Boot'= $boot
}
$computer = New-Object -TypeName PSObject -Prop $computerProps
$computerHtml = $computer | ConvertTo-Html -Fragment -PreContent "<h1>Computer Report - $(Get-Date)</h1><h2>System Information</h2>"
$computerHtml = $computer | ConvertTo-Html -Fragment -PreContent "<h1>Computer Report - $date</h1><h2>System Information</h2>"

# Create computer object and html
$perfmonProps = @{
Expand Down

0 comments on commit 88c8224

Please sign in to comment.