Add-History


Adds entries to the session history.

Snap-In: Microsoft.PowerShell.Core

Syntax:

Add-History [

 [-InputObject] <PSObject[]>] [-Passthru] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] 

Description:

The add-history Cmdlet enables you to add entries to the session history list. Using the cmdlet to add a command to the list has the same effect as actually typing the command. The add-history Cmdlet makes it possible to reconstruct a history list saved during a previous Ps session. You can save the session history in XML or CSV format. By default, history files are saved in the home directory, but specifying a path allows you to save the file in any location.



Windows PowerShell. TFM
Internet Forensics
ISBN: 982131445
EAN: 2147483647
Year: 2004
Pages: 289

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net