PowerTip: Get Time with PowerShell

Doctor 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

0 comments

Comments are closed. Login to edit/delete your existing comments