This post will show you how to use registry keys to test, set and remove target versions for Windows Feature Updates. This allows you to prevent Windows 10 or 11 from updating past your configured limit.
This script was updated after being published, if you're using it please compare the version you have with the version available here.
This script was last updated on 2023/04/05.
When you run this script you might want to pass some parameters - here's what they do:
-Test- This will test the current target version settings and show you the results.
-Unset- This will remove the target version settings.
-TargetProductVersion- Specify the target version to aim for, examples would be
-TargetProduct- Specify the target product to aim for, examples would be