我有一台支持win11硬件的100多台计算机,我想使用一个脚本,我一直在尝试将windows 10更新到windows 11。我尝试通过更新一个新的win11update助手来使用异端脚本"https://heresjaken.com/install-windows-10-upgrade-through-powershell-using-windows-update-assistant/“,但是在运行脚本之后,它在EULA上会发生什么。在参数中尝试了不同的字符串,但它不接受。没有什么帮助是值得赞赏的。谢谢。
下面的代码函数是下载windows 11助手并在静默中运行它,但是在参数中它不接受EULA。这些论点似乎不适用于Win11更新助手。需要帮助!
try {
# Declarations
[string]$DownloadDir = 'C:\Temp\Windows_FU\packages'
[string]$LogDir = 'C:\Temp\Logs'
[string]$LogFilePath = [string]::Format("{0}\{1}_{2}.log", $LogDir, "$(get-date -format `"yyyyMMdd_hhmmsstt`")", $MyInvocation.MyCommand.Name.Replace(".ps1", ""))
[string]$Url = 'https://go.microsoft.com/fwlink/?linkid=2171764'
[string]$UpdaterBinary = "$($DownloadDir)\Windows11InstallationAssistant.exe"
[string]$UpdaterArguments = '/eula=1 /auto upgrade /copylogs $LogDir'
[System.Net.WebClient]$webClient = New-Object System.Net.WebClient 发布于 2022-06-11 00:32:57
我使用process查看可用的参数,因为我过去用于其他升级工具的参数集不起作用。我还没有找到使用windows 11升级工具在线编写脚本的大量文档。
在尝试了几个组合之后,这组参数对我起了作用:
'/Install /MinimizeToTaskBar /QuietInstall /SkipEULA /copylogs $LogDir'https://stackoverflow.com/questions/70533856
复制相似问题