author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Fri, 16 Oct 2020 00:09:34 +0300 | |
changeset 2439 | 7377cd066123 |
parent 2359 | 52bb40bb41b0 |
child 2461 | 1a943cc3f862 |
permissions | -rw-r--r-- |
2358
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
1 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
2 |
============================ |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
3 |
Tuning Windows performance |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
4 |
============================ |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
.. contents:: |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
:local: |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
7 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
Disable 8.3 name support |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
9 |
======================== |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
10 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
11 |
Check status in elevated shell:: |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
12 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
13 |
fsutil.exe behavior query disable8dot3 |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
14 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
15 |
Disable 8.3 names on all volumes:: |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
16 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
17 |
fsutil.exe 8dot3name set 1 |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
18 |
fsutil.exe behavior set disable8dot3 1 |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
19 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
20 |
https://support.microsoft.com/en-us/help/121007/how-to-disable-8-3-file-name-creation-on-ntfs-partitions |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
21 |
How to disable 8.3 file name creation on NTFS partitions. |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
22 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
23 |
Disable last access time |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
24 |
======================== |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
25 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
26 |
Check status in elevated shell:: |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
27 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
28 |
fsutil.exe behavior query disable8dot3 |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
29 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
30 |
Disable last access time for all NTFS volumes (``1`` - user setting, ``3`` - system setting):: |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
31 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
32 |
fsutil.exe behavior set disableLastAccess 1 |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
33 |
fsutil.exe behavior set disableLastAccess 3 |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
34 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
35 |
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/fsutil-behavior |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
36 |
Fsutil behavior |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
37 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
38 |
Exclude directories for Windows Defender |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
39 |
======================================== |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
40 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
41 |
* Open Windows Defender Settings. |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
42 |
* Click "Virus & threat protection". |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
43 |
* Click "Virus & threat protection settings". |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
44 |
* Scroll down to "Exclusions" and click "Add or remove exclusions". |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
45 |
* Click "Add an exclusion" and select "Folder" from the drop-down menu. |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
46 |
* Navigate to the directory to be excluded, or paste its path into the "Folder" text-box, and click |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
47 |
"Select Folder". |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
48 |
|
2359
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
49 |
Same from elevated CLI:: |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
50 |
|
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
51 |
powershell -Command Add-MpPreference -ExclusionPath "C:\tmp" |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
52 |
powershell -Command Add-MpPreference -ExclusionProcess "java.exe" |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
53 |
powershell -Command Add-MpPreference -ExclusionExtension ".java" |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
54 |
|
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
55 |
To show and delete settings:: |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
56 |
|
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
57 |
powershell -Command "Get-MpPreference | Select -Expand ExclusionPath" |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
58 |
powershell -Command "Get-MpPreference | Select -Expand ExclusionProcess" |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
59 |
powershell -Command "Get-MpPreference | Select -Expand ExclusionExtension" |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
60 |
|
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
61 |
powershell -Command Remove-MpPreference -ExclusionExtension ".java" |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
62 |
|
2358
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
63 |
https://support.microsoft.com/en-us/help/4028485/windows-10-add-an-exclusion-to-windows-security |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
64 |
Add an exclusion to Windows Security. |
2359
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
65 |
https://docs.microsoft.com/en-us/powershell/module/defender/add-mppreference |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
66 |
Modifies settings for Windows Defender from PowerShell. |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
67 |
https://docs.microsoft.com/en-us/powershell/module/defender/remove-mppreference |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
68 |
Removes exclusions or default actions. |
2358
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
69 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
70 |
Exclude directories Windows Search Indexing |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
71 |
=========================================== |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
72 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
73 |
* Open Windows Control Panel. |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
74 |
* Search for "index" and choose "Indexing Options". |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
75 |
* Click the "Modify" button |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
76 |
* Under the appropriate drive letter, navigate to the folder you want to exclude, and make sure it |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
77 |
is unchecked. |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
78 |
* Double-check your work by verifying the directory shows up in the "Exclude" column of the "Summary |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
79 |
of selected locations" table. |