Requirement

Forgot the command executed previously which worked for the requirement.

It happens to all IT Admins. We can't remember all the tasks we did until we document it. So, how to document it?

Solution:
help Get-History -Detailed
Example



How many commands have been executed in this session?



How to see the commands?



Short Note

PowerShell session will give you the commands you executed until you close the current session.
Get-History

Enjoy PowerShell :)

See Also

Other Languages

This article is also available in the following languages: