Forrest logo
tool overview
On this page you find all important commands for the CLI tool Get-History. If the command you are looking for is missing please ask our AI.


Get-History is a command line tool in PowerShell that allows users to view a list of commands executed in the current session. It provides a convenient way to review and reuse previously executed commands. The history is stored in memory and can be accessed using the Get-History command. By default, it displays a table with properties like Id, CommandLine, and ExecutionStatus. This tool also supports filtering, which allows users to narrow down the list based on specific criteria. Additionally, Get-History allows users to invoke previous commands using the Invoke-History command followed by the command ID. Users can even export the command history to a file for future reference or analysis using the Export-CLIXML or Export-Csv cmdlets. Overall, Get-History provides a powerful and efficient way to manage and track command execution in PowerShell.

List of commands for Get-History:

tool overview