diff --git a/Scripts/write-motd.ps1 b/Scripts/write-motd.ps1 index 181edc05..852f4571 100755 --- a/Scripts/write-motd.ps1 +++ b/Scripts/write-motd.ps1 @@ -40,7 +40,7 @@ $CurrentLoad = "{0}%" -f $(Get-WmiObject Win32_Processor | Measure-Object -Prope # $Processor = Get-CimInstance -ClassName Win32_Processor # $Memory_Size = "{0}mb/{1}mb Used" -f (([math]::round($ReturnedValues.Operating_System.TotalVisibleMemorySize / 1KB)) - ([math]::round($ReturnedValues.Operating_System.FreePhysicalMemory / 1KB))), ([math]::round($ReturnedValues.Operating_System.TotalVisibleMemorySize / 1KB)) $DriveDetails = Get-PSDrive C -$DiskSize = "{0}gb/{1}gb Used" -f (([math]::round($DriveDetails.Used / 1GB), ([math]::round(($DriveDetails.Used + $DriveDetails.Free) / 1GB))) +$DiskSize = "{0}gb/{1}gb Used" -f (([math]::round($DriveDetails.Used / 1GB), ([math]::round(($DriveDetails.Used + $DriveDetails.Free) / 1GB)))) # Print results: [Environment]::NewLine