Since the latest Windows 10 update, when opening Powershell I get the message "Try the new cross-platform PowerShell ".
I would like to turn that notification off. Any ideas?
23 Answers
Modify your PowerShell shortcut to include the -NoLogo switch.
2Powershell always starts your profile script located in:
C:\Users\<username>\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1You can use this script to replace the message entirely.
For example, you can put the following script there:
cls
write-host "Windows PowerShell"
write-host "Copyright (C) Microsoft Corporation. All rights reserved."
write-host ""Although the banner will be shown for less than a millisecond, this will work. It is possible to start Powershell with the -nologo switch which will remove that flash of banner altogether and then print this banner instead.
The message can of course be adjusted. This file can also be used to store custom functions and you can even create a function called Prompt to replace the default Powershell prompt.
This script is always loaded at the start of the powershell launch, even if you use Windows Terminal, though it will not reload the profile script in Windows Terminal if you open a new instance. The one cached from memory will be played instead.
0Open file location and add "-nologo" behindchange msg powershell
1