r/PowerShell • u/_LuiMen_ • Nov 14 '25
Question Windows 11 install with autounattend.xml - Win Updates the value is out of range
If I want to install Windows 11 with autounattend.xml, I run Windows updates with a Powershell script.
However, I get this error: the value is out of range
How can I fix the problem?
1
Upvotes
View all comments
Show parent comment
1
u/BlackV Nov 14 '25
Install-Windowsupdateis just an alias/function forget-windowsupdatethere is an-installparameterBut basically your getting a list of all your updates and doing your checks, the you're getting the list of updates again to then install them