powershell - 如何在PowerShell中删除横幅消息

标签 powershell

当我启动PowerShell时,它总是以这样的横幅开头:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Loading personal and system profiles took 1025ms.
>>

或在其他环境中从以下开始:
PowerShell v6.0.2
Copyright (c) Microsoft Corporation. All rights reserved.

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

我应该在配置文件中添加些什么,以便它在不显示横幅消息的情况下启动?
我在Windows 10 64位上,使用PowerShell 6.0.2。

最佳答案

您可以使用/nologo参数启动PowerShell以禁用该消息。powershell.exe /nologo此参数可以添加到Windows终端settings.json中的PowerShell配置文件中。

关于powershell - 如何在PowerShell中删除横幅消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49840525/

相关文章:

使用 Powershell SQL 将数据提取到 Excel

python - Django登录错误: “attempt to write a readonly database” in IIS

iis - 用于设置 IIS 日志记录设置的 Powershell 命令

powershell - 为 Raspberry PI 2 构建 DefaultApp - Windows 10 IoT

.net - PowerShell 中的 IEnumerable<CustomType>

iis-7 - 如何在 PowerShell 中迭代应用程序 IIS7 的身份验证

ide - 使用 IDE 时从 Powershell 调用第 3 方可执行文件时出错

powershell - 如何比较文件夹是否存在,如果不存在则创建她

使用 Powershell 进行反射

powershell - 在PowerShell中将BitArray转换为整数