memstechtips / UnattendedWinstall

Personalized Unattended Answer Files that helps automatically debloat and customize Windows 10 & 11 during the installation process.
MIT License
1.12k stars 168 forks source link

Inconsistency Between Title and Value - ClearPageFileAtShutdown #2

Closed GokhanTurk closed 1 week ago

GokhanTurk commented 2 weeks ago

Hello,

I have noticed a line in the autounattend.xml file that appears as follows:

:: Clears Memory Page File at Shutdown
reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v ClearPageFileAtShutdown /t REG_DWORD /d 0 /f

You are stating that it clears the memory page file at shutdown, but the value is set to 0. Is this the correct way to achieve this? I am a bit confused. Thank you for your assistance.

memstechtips commented 1 week ago

Thanks for pointing that out, the value is indeed correct but the description is not, I've changed it to the following:

:: Controls whether the memory page file is cleared at shutdown. Value 0 means it will not be cleared, speeding up shutdown. 
reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v ClearPageFileAtShutdown /t REG_DWORD /d 0 /f