mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-03 05:31:03 +02:00
Update write-motd.ps1
This commit is contained in:
parent
a1f5934d09
commit
7b46ee3503
@ -40,7 +40,7 @@ $CurrentLoad = "{0}%" -f $(Get-WmiObject Win32_Processor | Measure-Object -Prope
|
|||||||
# $Processor = Get-CimInstance -ClassName Win32_Processor
|
# $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))
|
# $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
|
$DriveDetails = Get-PSDrive C
|
||||||
$DiskSize = "{0}GB of {1}GB used" -f (([math]::round($DriveDetails.Used / 1GB), ([math]::round(($DriveDetails.Used + $DriveDetails.Free) / 1GB))))
|
$DiskSize = "{0}GB free of {1}GB" -f (([math]::round($DriveDetails.Free / 1GB), ([math]::round(($DriveDetails.Used + $DriveDetails.Free) / 1GB))))
|
||||||
|
|
||||||
# Print results:
|
# Print results:
|
||||||
[Environment]::NewLine
|
[Environment]::NewLine
|
||||||
|
Loading…
Reference in New Issue
Block a user