Hi Sandy,
Please ignore my previous reply. To stop Windows 11 from automatically installing, please set the "TargetReleaseVersionInfo" registry value to 22H2.
For more information, see "Option 2" or "Option 3" in the link below.
Set TargetReleaseVersionInfo Value to 22H2.
Standard Disclaimer: There is a link to a non-Microsoft website. The page appears to provide accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as PUPs (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.