Ramin Omrani
Ramin Omrani

Reputation: 3761

Windows PowerShell - How to view commands history date/time

I want to list entered commands in Windows PowerShell with their respective timestamps. How can I do it with Get-History command?

Also if that isn't doable then please show me a way to check which urls(network) at which timestamps have been accessed through the CMD.

Also consider that I've restarted my computer.

Thanks life savers

Upvotes: 2

Views: 2295

Answers (1)

Aaron
Aaron

Reputation: 24812

Using format-list on the result of Get-History will show additional info about past tasks, including execution start and end time.

h | format-list

Upvotes: 3

Related Questions