How to I remove the Powershell start text?

mikemaccana picture mikemaccana · Jan 15, 2018 · Viewed 14.6k times · Source

Powershell 6 has a Unix-style /etc/issue that mentions a link to the docs.

PowerShell v6.0.0
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs
Type 'help' to get help.

This is fine, but:

  • I know where the docs are
  • I know I launched Powershell 6

How can I remove some, or all of the message? IIRC Powershell 5 still had the copyright message so maybe I can't remove that, but getting rid of the last 3 lines would help?

Answer

Christian.K picture Christian.K · Jan 15, 2018

Pass the -nologo option.

-NoLogo Starts the PowerShell console without displaying the copyright banner.

pwsh.exe -nologo ...other arguments...