mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-22 21:58:42 +01:00
Update write-motd.ps1
This commit is contained in:
parent
2131b72577
commit
f69e1e428f
@ -29,7 +29,7 @@ $Kernel_Info = "" # todo
|
||||
|
||||
$BootTime = Get-WinEvent -ProviderName eventlog | Where-Object {$_.Id -eq 6005} | Select-Object TimeCreated -First 1
|
||||
$TimeSpan = New-TimeSpan -Start $BootTime.TimeCreated.Date -End (Get-Date)
|
||||
$Uptime = $TimeSpan.Days + " days " + $TimeSpan.Hours + " hours " + $TimeSpan.Minutes + " minutes"
|
||||
$Uptime = "$($TimeSpan.Days) days, $($TimeSpan.Hours) hours, $($TimeSpan.Minutes) minutes"
|
||||
$PowerShellVersion = $PSVersionTable.PSVersion
|
||||
$PowerShellEdition = $PSVersionTable.PSEdition
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user