Hello, thank you for reaching out to Microsoft Q&A.
Could you please confirm whether you’ve added a work or school account to the device?
Go to Start > Settings > Accounts > Access work or school.
If you’ve added any organizational accounts, they might be blocking these features from running on your device.
If you haven’t added a work or school account and you’re still seeing this error, open Command Prompt as an administrator and run the following commands one by one, pressing Enter after each command:
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
Once done, close the command prompt and restart your computer.
Let me know if you still need more help.