I installed a fresh server 2016 STD and joined to Domain. and logged in with domain administrator user.
I got the error below when I opened Windows Defender from Settings.
The error says it doesn't have permission. But I have logged in with Domain administrator:
3 Answers
This may be a problem with the local security policy. It can be easily changed.
Access the local security policy GUI by gpedit.msc into cmd or run. If that doesn't work you can go to Server Manager --> Tools --> Group Policy Management`
Once your there go to
Computer Configuration-> Windows Settings-> Security Settings -> Local Policies-> Security Optionsthen enable the policy that says "User Account Control: Admin Approval Mode for the Built-in Administrator account"
2Once you do this, you must restart
Mhm. It seems the file permission for the file is the issue. Let's try to modify that, since it is not allowing you with domain Administrator.
Download the PsExec tool from Microsoft's Website, here. Open a normal Administrator Command Prompt (Win+X then Command Prompt (Admin)). In it run,
psexec –i –s CMDafter changing directory (cd) to the executable's location. If prompted with password, enter. If asked for the SYSTEM password, it should be nothing so just press enter. This should allow you to run the computer as NT_Authority\System.Run this command to grant the Domain Administrator permission to access it. Replace the Administrator with whatever Administrator you are using for example
MyNiceServer\Administrator, I'd also just run Administrator for the local system as well.
icacls "C:\Program Files\Windows Defender\msascui.exe" /grant Administrator:(F,WDAC)
What worked for us was to browse directly to the file, right-click and select 'run as administrator'. This should not require any changes to system or reboots.
C:\Program Files\Windows Defender\MSASCui.exe