author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 17 Jan 2021 17:48:27 +0200 | |
changeset 2503 | ef63c4afe404 |
parent 2462 | 9b3b29e0b467 |
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 |
|
2461
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
13 |
fsutil behavior query disable8dot3 |
2358
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 |
|
2461
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
17 |
fsutil 8dot3name set 1 |
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
18 |
fsutil behavior set disable8dot3 1 |
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
19 |
|
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
20 |
Corresponding registry leaf (1 - disable, 0 - enable):: |
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
21 |
|
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
22 |
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation |
2358
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
23 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
24 |
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
|
25 |
How to disable 8.3 file name creation on NTFS partitions. |
2461
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
26 |
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-2000-server/cc959352(v=technet.10) |
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
27 |
About registry key ``NtfsDisable8dot3NameCreation``. |
2358
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
28 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
29 |
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
|
30 |
======================== |
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 |
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
|
33 |
|
2461
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
34 |
fsutil behavior query disableLastAccess |
2358
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
35 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
36 |
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
|
37 |
|
2461
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
38 |
fsutil behavior set disableLastAccess 1 |
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
39 |
fsutil behavior set disableLastAccess 3 |
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
40 |
|
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
41 |
Corresponding registry leaf (1 - disable as user, 3 - disable as system):: |
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
42 |
|
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
43 |
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisableLastAccessUpdate |
2358
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
44 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
45 |
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/fsutil-behavior |
2461
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
46 |
Docs for ``fsutil behavior``. |
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
47 |
https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-2000-server/cc959914(v=technet.10) |
1a943cc3f862
Disable last access time.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2359
diff
changeset
|
48 |
About registry key ``NtfsDisableLastAccessUpdate``. |
2358
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
49 |
|
2462
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
50 |
Allow symlink evaluation |
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
51 |
======================== |
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
52 |
|
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
53 |
Query current setting:: |
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
54 |
|
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
55 |
fsutil behavior query SymlinkEvaluation |
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
56 |
|
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
57 |
Registry keys:: |
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
58 |
|
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
59 |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem] |
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
60 |
SymlinkLocalToLocalEvaluation=dword:00000001 |
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
61 |
SymlinkLocalToRemoteEvaluation=dword:00000001 |
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
62 |
SymlinkRemoteToLocalEvaluation=dword:00000000 |
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
63 |
SymlinkRemoteToRemoteEvaluation=dword:00000000 |
9b3b29e0b467
Allow symlink evaluation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2461
diff
changeset
|
64 |
|
2358
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
65 |
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
|
66 |
======================================== |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
67 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
68 |
* 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
|
69 |
* 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
|
70 |
* 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
|
71 |
* 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
|
72 |
* 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
|
73 |
* 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
|
74 |
"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
|
75 |
|
2359
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
76 |
Same from elevated CLI:: |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
77 |
|
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
78 |
powershell -Command Add-MpPreference -ExclusionPath "C:\tmp" |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
79 |
powershell -Command Add-MpPreference -ExclusionProcess "java.exe" |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
80 |
powershell -Command Add-MpPreference -ExclusionExtension ".java" |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
81 |
|
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
82 |
To show and delete settings:: |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
83 |
|
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
84 |
powershell -Command "Get-MpPreference | Select -Expand ExclusionPath" |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
85 |
powershell -Command "Get-MpPreference | Select -Expand ExclusionProcess" |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
86 |
powershell -Command "Get-MpPreference | Select -Expand ExclusionExtension" |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
87 |
|
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
88 |
powershell -Command Remove-MpPreference -ExclusionExtension ".java" |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
89 |
|
2358
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
90 |
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
|
91 |
Add an exclusion to Windows Security. |
2359
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
92 |
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
|
93 |
Modifies settings for Windows Defender from PowerShell. |
52bb40bb41b0
Show and delete settings.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
2358
diff
changeset
|
94 |
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
|
95 |
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
|
96 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
97 |
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
|
98 |
=========================================== |
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
99 |
|
c7a7c6b59840
Disable 8.3 name support. Disable last access time. Exclude directories for Windows Defender.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
100 |
* 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
|
101 |
* 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
|
102 |
* 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
|
103 |
* 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
|
104 |
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
|
105 |
* 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
|
106 |
of selected locations" table. |