首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用脚本使用助手将win10更新为win11

使用脚本使用助手将win10更新为win11
EN

Stack Overflow用户
提问于 2021-12-30 15:54:09
回答 1查看 547关注 0票数 0

我有一台支持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更新助手。需要帮助!

代码语言:javascript
复制
    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    
EN

回答 1

Stack Overflow用户

发布于 2022-06-11 00:32:57

我使用process查看可用的参数,因为我过去用于其他升级工具的参数集不起作用。我还没有找到使用windows 11升级工具在线编写脚本的大量文档。

在尝试了几个组合之后,这组参数对我起了作用:

代码语言:javascript
复制
'/Install  /MinimizeToTaskBar /QuietInstall /SkipEULA /copylogs $LogDir'
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70533856

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档