$Computer = Read-Host "Input Computer Name " Get-WmiObject Win32_LocalTime -ComputerName $Computer | ForEach-Object {[string]$strTime = $_.Hour.ToString() +":"+$_.Minute.ToString()+":"+$_.Second.ToString()} Write-Host "in" $Computer "at" [$strTime] "[hh:mm:ss]" Read-Host “Push Enter for Exit”