Download Java For Minecraft Your Os Is Windows 11 (x64)

I am not aware of anything settings in logon scripts or GPO's that would cause this. Also logging off and back on, or even rebooting the computer, doesn't reproduce the problem (at least not consistently).