PowerTip: Get Time with PowerShell

Doctor Scripto

Dr Scripto

Summary: Use Windows PowerShell to get the current time.

Hey, Scripting Guy! Question  How can I use Windows PowerShell to get the current time?

Hey, Scripting Guy! Answer  Use the Get-Date cmdlet and specify a –DisplayHint of Time:

Get-Date -DisplayHint time

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

Leave a comment