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. |
|||
