How does Win10 use the command to enable Windows Defender to enable compressed file scanning by default?

  
                

Windows Defender is an anti-virus program built into Windows. It usually takes care of compressed files when you plan to scan or when users manually turn on scanning. In the Win10 system, is there any way to enable Windows Defender to open compressed file scanning by default? The method is very simple, just a command can be done.

The specific operation method is as follows:

1. Enter PowerShell in the Cortana search bar, then right click and select “Run as administrator” (users who use the recent version of Win10 Preview can also Right click on the start button and select Windows PowerShell Administrator);

2. Execute the following command:

  1. 01
    Set-MpPreference -DisableArchiveScanning 0

    Copy code Set-MpPreference -DisableArchiveScanning 0

    Windows Defender can scan compressed files by default.

    3. To restore the default settings, execute the following command:

    1. 01
      Set-MpPreference -DisableArchiveScanning 1

      Copy Code Set -MpPreference -DisableArchiveScanning 1

      Alternatively, you can use the registry method to open it. The steps are as follows:

      1. Enter regedit in the Cortana search bar and press Enter to enter the registry editor.

      2, navigate to: HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Policies \\ Microsoft \\ Windows Defender, a new item named scan;

      3, New DWORD (32-bit) value named DisableArchiveScanning , numerical data remains 0;


      4, restart explorer.exe, use a soft coal cube Home shortcut commands easily;

      5, if you want to restore the default settings You can delete DisableArchiveScanning directly or change the value data to 1.

      The above is the Win10 setting Windows Defender to open the compressed file scanning by default two ways, you can choose the method you like to open.

Copyright © Windows knowledge All Rights Reserved