Use Windows Management Instruction (WMI) to schedule scans
Use the Set method of the MSFT_MpPreference class for the following properties:
ScanParameters
ScanScheduleDay
ScanScheduleTime
RandomizeScheduleTaskTimes
For more information and allowed parameters, see Windows Defender WMIv2 APIs
WMI for scheduling scans when an endpoint is not in use
Use the Set method of the MSFT_MpPreference class for the following properties:
ScanOnlyIfIdleEnabled
For more information about APIs and allowed parameters, see Windows Defender WMIv2 APIs.
Note
When you schedule scans for times when endpoints are not in use, scans do not honor the CPU throttling configuration and will take full advantage of the resources available to complete the scan as fast as possible.
WMI for scheduling scans to complete remediation
Use the Set method of the MSFT_MpPreference class for the following properties:
RemediationScheduleDay
RemediationScheduleTime
For more information and allowed parameters, see Windows Defender WMIv2 APIs.
WMI for scheduling daily scans
Use the Set method of the MSFT_MpPreference class for the following properties:
ScanScheduleQuickScanTime
For more information and allowed parameters, see Windows Defender WMIv2 APIs.