windowspowershellpowershell-corewindows-terminal

How to remove powershell ads and update checks in the Windows Terminal?


When I start the Windows Terminal, I get the following:

enter image description here

How do I get rid of the copyright & version notifications, the help URL and the update check? I just want to get to the command line.

My powershell profile in the settings.json (the config file for the Windows Terminal) is like this:

{
    "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
    "hidden": false,
    "name": "PowerShell",
    "source": "Windows.Terminal.PowershellCore",
    "fontFace": "Cascadia Code PL",
    "startingDirectory": "C:\\Users\\user1\\desktop\\"
}

I've seen flags like -nologo and so forth, but I don't have a command line to pass it to.


Solution

  • Update:


    Create a custom profile in Windows Terminal's settings.json file as follows (inside the profiles.list array property):

    As of at least PowerShell 7.2.1 -nologo also deactivates update notifications:Thanks, Maximilian Hils.

    {
        // no strict need for a GUID; create a *new* one, if needed.
        "hidden": false,
        "name": "PowerShell - no logo, no update notification",
        "commandline": "pwsh.exe -nologo"
        // ... other properties omitted.
    },
    

    In earlier versions you may need environment variable POWERSHELL_UPDATECHECK to disable update notifications:

    {
        // no strict need for a GUID; create a *new* one, if needed.
        "hidden": false,
        "name": "PowerShell - no logo, no update notification",
        "commandline": "cmd /c set POWERSHELL_UPDATECHECK=Off & pwsh.exe -nologo"
        // ... other properties omitted.
    },