Powershell

Powershell History Remove Duplicate Commands

When running commands within PowerShell, the history of commands may contain duplicated commands. To run a command contained within the commands history, you use the up arrow key to scroll up to the required command. If the commands are many and duplicated, it may require a bit of effort to get to the required command. In Windows PowerShell 5.0, you can prevent duplication of commands within the history by running the following command in PowerShell: