The following script runs a custom Windows Defender scan on multiple drives with exclusions.
👉 NOTE: Since this is a long-running script, be sure to turn off the Sleep setting for your computer before you run it.
- Navigate to Settings > System > Power & sleep
- Click the drop-down setting for Sleep and change it to Never