windows-perf.rst
changeset 2359 52bb40bb41b0
parent 2358 c7a7c6b59840
child 2461 1a943cc3f862
equal deleted inserted replaced
2358:c7a7c6b59840 2359:52bb40bb41b0
    44 * Scroll down to "Exclusions" and click "Add or remove exclusions".
    44 * Scroll down to "Exclusions" and click "Add or remove exclusions".
    45 * Click "Add an exclusion" and select "Folder" from the drop-down menu.
    45 * Click "Add an exclusion" and select "Folder" from the drop-down menu.
    46 * Navigate to the directory to be excluded, or paste its path into the "Folder" text-box, and click
    46 * Navigate to the directory to be excluded, or paste its path into the "Folder" text-box, and click
    47   "Select Folder".
    47   "Select Folder".
    48 
    48 
       
    49 Same from elevated CLI::
       
    50 
       
    51   powershell -Command Add-MpPreference -ExclusionPath "C:\tmp"
       
    52   powershell -Command Add-MpPreference -ExclusionProcess "java.exe"
       
    53   powershell -Command Add-MpPreference -ExclusionExtension ".java"
       
    54 
       
    55 To show and delete settings::
       
    56 
       
    57   powershell -Command "Get-MpPreference | Select -Expand ExclusionPath"
       
    58   powershell -Command "Get-MpPreference | Select -Expand ExclusionProcess"
       
    59   powershell -Command "Get-MpPreference | Select -Expand ExclusionExtension"
       
    60 
       
    61   powershell -Command Remove-MpPreference -ExclusionExtension ".java"
       
    62 
    49 https://support.microsoft.com/en-us/help/4028485/windows-10-add-an-exclusion-to-windows-security
    63 https://support.microsoft.com/en-us/help/4028485/windows-10-add-an-exclusion-to-windows-security
    50   Add an exclusion to Windows Security.
    64   Add an exclusion to Windows Security.
       
    65 https://docs.microsoft.com/en-us/powershell/module/defender/add-mppreference
       
    66   Modifies settings for Windows Defender from PowerShell.
       
    67 https://docs.microsoft.com/en-us/powershell/module/defender/remove-mppreference
       
    68   Removes exclusions or default actions.
    51 
    69 
    52 Exclude directories Windows Search Indexing
    70 Exclude directories Windows Search Indexing
    53 ===========================================
    71 ===========================================
    54 
    72 
    55 * Open Windows Control Panel.
    73 * Open Windows Control Panel.