Suppress Windows Powershell advertisement in windows terminal.
July 8, 2022•140 words
Credit to this StackOverflow Post
If you're using the original Powershell in Windows, you may frequently be greeted by this prompt.
Windows Powershell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\
If you are slightly annoyed by it or find that it is causing Powershell to take longer to startup, there is a way to disable it.
Using Windows Terminal, you can modify the Powershell launch settings by going to the profile settings for Windows PowerShell.
Click on 'Command Line' and modify the command to look like this:
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo
If you're not using Windows Terminal, you can create a shortcut to the same file path and pass the argument that way.
The NoLogo
flag will instruct Powershell not to display the opening messages, along with the PS6 advertisement.