Contact Info

Crumbtrail

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

Add-History - Powershell 1.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

Description
Add entries to the session history

Usage


Options


Example(s)
Export session history to a file :

C:\PS>get-history | export-csv E:\SessionHist.csv

Import session history from a file (this could be a different session on a different machine):

C:\PS>import-csv SessionHist.csv | add-history

You can also pipe commands directly from get-history to add-history which will re-arrange the order of items in the command line history. Piping history command (either from file or from get-history) to invoke-history will actullly run the commands.