I've seen a few scenarios when this can happen.
- Computer is enrolled in intune or joined in Azure/Entra.
- You are using KMS license.
- Some manufacturer apps or third party antivirus can also cause this.
- Group policies issue.
=================
I will have you do this first. If the following doesn't work, we will check further for the other scenarios I listed.
First, can you please go to Settings > Accounts > Access Work or School, and make sure there's no work/school email address listed there. We know it is not joined in Azure, but just want to make sure there's no intune enrollment either.
If not, or if nothing is listed there, please type cmd in the search on the taskbar and make sure you select "Run As Administrator" to launch Command Prompt.
Then run the following command and hit enter:
gpupdate /force /boot
Restart the computer and see if it helps. If not, launch Command Prompt in Admin mode again and run the following commands, one at a time. Not all of them will go through completely, or value can be found, and that's ok. Once finished, restart the computer again and see if it works.
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKLM\Software\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKCU\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKCU\Software\Policies" /f
reg delete "HKLM\Software\Microsoft\Policies" /f