tl;博士如何强迫Powershell跳过检查新版本?
启动Powershell 7时,它会检查Powershell的新版本。
目前,这看起来像是
PowerShell 7.0.0
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/powershell
Type 'help' to get help.
A new PowerShell stable release is available: v7.1.3
Upgrade now, or check out the r
每次我的Powershell脚本调用Batchfile时,都会打开一个新的Powershell窗口。如何修改脚本以避免打开新窗口?我尝试过使用-windowstyle hidden和NoNewWindow,但都没有用。
下面是启动我的Powershell脚本的Batchfile文件:
@echo off
set scriptFileName=%~n0
set scriptFolderPath=%~dp0
set powershellScriptFileName=test.ps1
powershell.exe -windowstyle hidden -Command "Start-P
我在64位计算机上使用,我使用的是Window1 PowerShell 7.2.5
今天我刚刚打开了我的PowerShell,它告诉我“一个新的PowerShell稳定版本可用: v7.2.6升级,或者查看发布页面:
我查看了发布页面,但不知道如何从网页中更新它。
然后我尝试了命令winget upgrade Microsoft PowersShell,但得到了错误消息Found a positional argument where none was expected: `PowerShell`。
任何帮助,以了解如何更新此PowerShell将不胜感激!
关于我的计算机的其他信息:版本: