September 10th, 2012

PowerTip: Working with the Maximum History Setting

Doctor Scripto
Scripter

Summary: Learn how to increase the maximum history value.

 

Hey, Scripting Guy! Question How can I increase the number of commands that are stored in the Windows PowerShell command history?

Hey, Scripting Guy! Answer Specify a new value for the $MaximumHistoryCount automatic variable.

   In Windows PowerShell 3.0, the variable is set to 4096, but you can store up to 32767 history items
   in the variable if you need to do so. 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback