Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Add-History

Add-History - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Add-History

Short description
Appends entries to the session history.

Syntax
Add-History [[-InputObject] <PSObject[]>] [-Passthru] [<CommonParameters>]





Description
The Add-History cmdlet adds entries to the end of the session history, that is, the list of commands entered during the
 current session.


You can use the Get-History cmdlet to get the commands and pass them to Add-History, or you can export the commands to 
a CSV or XML file, then import the commands, and pass the imported file to Add-History. You can use this cmdlet to add 
specific commands to the history or to create a single history file that includes commands from more than one session.