From 604a290a7ff161a1322de307660f68e7406a2acc Mon Sep 17 00:00:00 2001 From: efrick Date: Tue, 27 Apr 2021 15:30:58 -0400 Subject: [PATCH 1/2] Fix RAM output --- sysinfo.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/sysinfo.ps1 b/sysinfo.ps1 index 8eb4926..59dd12f 100644 --- a/sysinfo.ps1 +++ b/sysinfo.ps1 @@ -120,6 +120,7 @@ function Find-Computer-Info_7 { function Find-RAM_7 { [wmi]$cs = Get-WmiObject -Class win32_computersystem $system_memory_7 = $cs.totalphysicalmemory / 1GB -as [int] + $system_memory_7 = $system_memory_7.ToString() + "GB" return $system_memory_7 } From 3cbdfadb8a93dd3af792fc5151fc229efd827c6f Mon Sep 17 00:00:00 2001 From: efrick Date: Tue, 27 Apr 2021 15:32:07 -0400 Subject: [PATCH 2/2] Fix For issue #4 --- sysinfo.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysinfo.ps1 b/sysinfo.ps1 index 59dd12f..d5c7eef 100644 --- a/sysinfo.ps1 +++ b/sysinfo.ps1 @@ -126,7 +126,7 @@ function Find-RAM_7 { function Show-Computer-Info_7 { if ($write_output.IsPresent){ - $computer_hostname = wmic + $computer_hostname = wmic computersystem get name $output_filename = "SystemProfile_" + $computer_hostname + ".txt" $output_path = "" if ($file_location.IsPresent){