Update windows10.ps1

This commit is contained in:
simeononsecurity
2021-01-08 03:13:44 +00:00
committed by GitHub
parent d011cafd2b
commit 03e6c3acbd

@ -292,11 +292,10 @@ Start-Job -Name "Customizations" -ScriptBlock {
Import-StartLayout -LayoutPath $layoutFile -MountPath $env:SystemDrive\
Remove-Item $layoutFile
#https://notes.ponderworthy.com/fsutil-tweaks-for-ntfs-performance-and-reliability
fsutil behavior set memoryusage 2
#fsutil behavior set disablelastaccess 1
fsutil behavior set mftzone 2
#https://notes.ponderworthy.com/fsutil-tweaks-for-ntfs-performance-and-reliability
$DriveLetters = (Get-WmiObject -Class Win32_Volume).DriveLetter
ForEach ($Drive in $DriveLetters) {
If (-not ([string]::IsNullOrEmpty($Drive))) {