Has anyone created a Windows 11 22h2 feature update worklet?
Hi
The Worklet named Windows - Configuration - Windows 11 Feature Update in our Catalog will allow you to upgrade a device from Windows 10 to Windows 11.
This Worklet will perform an in-place Feature Upgrade to Windows 11 by invoking the Windows Installation Assistant utility silently. The WIA tool will download the latest available Windows 11 build, which at the time of writing this is 22H2.
I hope this helps! Have a great day!
Hi
If you have the Target Release Version registry key in place, you will need to remove it first before running the worklet. Else, when the Windows 11 Installation Assistant runs it would deem the device as not compatible.
Let me know if you have any other questions!
You should probably tweak the “Windows 11 Feature Update” worklet to check if these keys exist and delete them before running the installation assistant.
Hi
Thanks for the feedback! We’ll look at adding this as an enhancement to the existing worklet.
In the meanwhile, you can use the following worklet to check if the target version registry key is set and then remove them:
Evaluation Code:
# Check the existence of the Target Release Version registry keys
$rPath = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate'
$rVersionKeys = @('TargetReleaseVersion', 'TargetReleaseVersionInfo', 'DisableWUfBSafeguards')
$detected = $false
ForEach ($key in $rVersionKeys)
{
If (Get-ItemProperty -Path $rPath -Name $key -ErrorAction SilentlyContinue)
{
$detected = $true
Break
}
}
If ($detected)
{
Write-Output "Target version keys were found. Flagging for remediation."
Exit 1
}
Else
{
Write-Output "Target version keys were not found. Device is compliant."
Exit 0
}
Remediation Code:
# Remediate by removing Target Release Version registry keys if they exist
$rPath = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate'
$rVersionKeys = @('TargetReleaseVersion', 'TargetReleaseVersionInfo', 'DisableWUfBSafeguards')
ForEach ($key in $rVersionKeys)
{
# Check if the property exists before attempting to remove
If (Get-ItemProperty -Path $rPath -Name $key -ErrorAction SilentlyContinue)
{
# If it exists, remove the property
Remove-ItemProperty -Path $rPath -Name $key
Write-Output "Removed $key from $rPath."
}
Else
{
Write-Output "$key not found at $rPath."
}
}
Write-Output "Device is compliant."
Exit 0
This can be ran as a separate worklet, or if you wanted to consolidate it into the existing Windows 11 Feature Upgrade one, you can add the remediation code here to the beginning of that worklet’s remediation code. Just remove the Exit 0
line that way the script continues with the Upgrade.
Let me know if you have any questions.
Have a great day!
Hi
The Windows Installation Assistant will always download the latest available version of Windows 11, so you won’t be able to use that method to push earlier builds like 21H2.
We’ll be releasing a new Windows 11 Feature Update worklet to the Catalog in about a week or so though!
This new version will allow you to perform the Windows 11 upgrade via a network share hosted ISO. With this method, you’d be able to target whatever Windows 11 build you’d like by sourcing the appropriate ISO.
I’ll post a link here when the new worklet goes live.
Have a great day!
Good morning
The new Windows 11 upgrade worklet has been released to the Worklet Catalog:
Windows - Maintenance Tasks - Windows 10 to Windows 11 Upgrade via ISO
Please let me know if you have any questions about implementing it.
Have a great day!
Reply
Login to the community
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.