Test-DefenderAndAmsiWorkProperly
Tests that Windows Defender components and SharePoint AMSI integration are properly installed and running.
Syntax
Default (Default)
Test-DefenderAndAmsiWorkProperly
Description
Use the Test-DefenderAndAmsiWorkProperly cmdlet to verify that all Windows Defender components are installed and running correctly, and that SharePoint AMSI (Antimalware Scan Interface) integration is functioning properly.
This cmdlet performs comprehensive checks to ensure that the security infrastructure is operational and can protect SharePoint Server from malicious content. It validates both the Windows Defender antimalware engine and the AMSI integration that allows SharePoint to scan content for potential threats.
The cmdlet does not make any changes to the system configuration but provides diagnostic information about the current state of security components.
For permissions and the most current information about Windows PowerShell for SharePoint Products, see the online documentation at SharePoint Server Cmdlets.
Examples
EXAMPLE 1
Test-DefenderAndAmsiWorkProperly
This example tests the Windows Defender components and SharePoint AMSI integration to verify they are properly installed and running.
EXAMPLE 2
Test-DefenderAndAmsiWorkProperly -Verbose
This example tests the Windows Defender components and SharePoint AMSI integration with verbose output to provide detailed information about each component being checked.
Outputs
System.Object
This cmdlet returns diagnostic information about the status of Windows Defender components and SharePoint AMSI integration.
Notes
- This cmdlet requires administrator privileges to access security component information.
- Ensure that Windows Defender is properly configured and enabled before running this test.
- SharePoint AMSI integration requires Windows Server 2016 or later with appropriate updates installed.