Hello,
Thank you for posting in the Microsoft Community Forums.
To block the "Windows Security" app for non-admin users using Group Policy on Windows Server 2019, you can follow these steps:
AppLocker is a feature that can help you control which apps and files users can run.
- Open Group Policy Management:
- Press
Windows + R
to open the Run dialog box. - Type
gpmc.msc
and press Enter to open the Group Policy Management Console.
- Press
- Create a New GPO:
- Right-click the appropriate domain or OU where you want to create the policy.
- Select "Create a GPO in this domain, and Link it here..."
- Name the GPO, such as "Restrict Windows Security App".
- Edit the GPO:
- Right-click on the newly created GPO and select "Edit" to open the Group Policy Management Editor.
- Navigate to AppLocker:
- Go to: Computer Configuration > Policies > Windows Settings > Security Settings > Application Control Policies > AppLocker
- Right-click on "Executable Rules", select "Create New Rule..."
- Create the Rule:
- Follow the wizard to create a new rule:
- On the "Before You Begin" page, click Next.
- On the "Permissions" page, select "Deny" and choose "User or group" to specify non-admin users.
- On the "Conditions" page, select "Path" and enter the path to the Windows Security executable (
C:\Program Files\Windows Defender\MSASCui.exe
or similar depending on your OS version).
- Follow the wizard to create a new rule:
- Finish and Apply:
- Complete the wizard to create the rule.
- Ensure the AppLocker rules are enabled by right-clicking "AppLocker" and selecting "Properties".
Best regards
Yanhong