镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

About

PowerShell History Made More Powerful

Resources

Stars

16 stars

Watchers

2 watching

Forks

Repository files navigation

PowerHistory adds additional features to PowerShell's history.

It adds useful information about any history item, and allows you to add extra properties to any history item.

Installing PowerHistory

You can clone the PowerHistory repository or Install PowerHistory from the PowerShell Gallery:

Install-Module PowerHistory -Scope CurrentUser

Using PowerHistory

You can use PowerHistory just like Get-History:

Get-PowerHistory # Gets all history items

You can also do some more nifty tricks, like find items in history that use a module, command, or variable:

Get-PowerHistory -Module PowerHistory # Gets previous uses of commands from PowerHistory

Get-PowerHistory -Command Get-PowerHistory # Gets previous runs of Get-PowerHistory

Get-PowerHistory -Variable MyVariable # Gets previous uses of $MyVariable 

Tracing to the history

You can store command output in a PowerHistory entry with any given -Name (defaulting to Output), and add additional -Properties or -Tags

Get-Process | Trace-PowerHistory -Name ActiveProcesses -Property @{TimeStamp=[DateTime]::Now} -Tag Processes

About

PowerShell History Made More Powerful

Resources

Stars

16 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages