PowerShell

Clearing the screen in PowerShell

A quick snippet for some newbie PowerShell developers whilst they start getting their teeth into the ISE is there are two easy ways of clearing the screen. I ahdnt thought about sharing this information but I saw a developer simply closing the ISE so that he could start afresh. I asked him why and he didn’t know any other way and hadn’t spent any time exploring the ISE or learning many PowerShell commands.

If you ever have a screen which you want to clear like below.

1

You can either type cls which will clear the screen or if you forget that syntax use the clear console pane button highlighted below.

2

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.