It sounds like your system is managed by an organization, and certain security settings are controlled by IT administrators. If you're on a work or school network, you'll need to contact your IT department to get the necessary permissions. If this is a personal device, try checking if there are any group policies applied that might restrict access. You can do this by running gpedit.msc and looking under Computer Configuration -> Administrative Templates -> Windows Components -> Windows Security -> Virus and threat protection.
Do you have any other antivirus programs installed on your computer? If so, try disabling or uninstalling them to see if that resolves the issue. Additionally, make sure your Windows is up to date. A recent update might have changed some settings.
I had a similar issue before, and it turned out to be due to a registry setting. If you're comfortable with it, you can try editing the registry.
Navigate to HKEY_LOCAL_MACHINE/SOFTWA RE/Policies/Microsoft/Win dows Defender and check if there are any policies set that might be restricting access.
Be sure to back up the registry before making any changes.
Just a heads-up: if you recently removed any malware or unwanted software, it could have left some restrictions in place. Running a system file check might help. Open Command Prompt as an administrator and run sfc /scannow to check and repair any corrupted files. This can sometimes restore default settings.