Windows Security includes a Defender antivirus component that performs quick and full scans of files at regular intervals. If the computer is powered down during a scheduled scan, it misses the opportunity for a virus check. Users can configure a grace period in the registry to automatically initiate a forced quick scan after a specified number of days without a scan. To adjust this setting, users need to open the Registry Editor and navigate to HKEYLOCALMACHINESOFTWAREPoliciesWindowsWindows Security.