|
|
@ -10729,6 +10729,10 @@ function CleanupTask |
|
|
|
) |
|
|
|
foreach ($VolumeCache in $VolumeCaches) |
|
|
|
{ |
|
|
|
if (-not (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache")) |
|
|
|
{ |
|
|
|
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Force |
|
|
|
} |
|
|
|
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\$VolumeCache" -Name StateFlags1337 -PropertyType DWord -Value 2 -Force |
|
|
|
} |
|
|
|
|
|
|
|