issue-#4 Fix #5

Merged
efrick merged 2 commits from issue-#4 into Win7_Fix 2021-04-27 15:36:56 -04:00

View File

@ -120,12 +120,13 @@ function Find-Computer-Info_7 {
function Find-RAM_7 { function Find-RAM_7 {
[wmi]$cs = Get-WmiObject -Class win32_computersystem [wmi]$cs = Get-WmiObject -Class win32_computersystem
$system_memory_7 = $cs.totalphysicalmemory / 1GB -as [int] $system_memory_7 = $cs.totalphysicalmemory / 1GB -as [int]
$system_memory_7 = $system_memory_7.ToString() + "GB"
return $system_memory_7 return $system_memory_7
} }
function Show-Computer-Info_7 { function Show-Computer-Info_7 {
if ($write_output.IsPresent){ if ($write_output.IsPresent){
$computer_hostname = wmic $computer_hostname = wmic computersystem get name
$output_filename = "SystemProfile_" + $computer_hostname + ".txt" $output_filename = "SystemProfile_" + $computer_hostname + ".txt"
$output_path = "" $output_path = ""
if ($file_location.IsPresent){ if ($file_location.IsPresent){