This article provides a solution for the issue Windows shuts down slowly when it is set to clear the virtual memory pagefile on shutdown.
Original KB number: 320423
Symptoms
When the Clear virtual memory pagefile when system shuts down Group Policy setting is turned on in Windows Server 2003 and in later versions, the computer may take longer to shut down than it usually takes. This setting is called Shutdown: Clear virtual memory pagefile in Windows Vista and later versions.
Cause
This behavior occurs because when this policy setting is turned on, the computer must physically write to each page in the pagefile to clear each page. The period of time that it takes for the system to clear the pagefile varies according to the pagefile size, and the disk hardware that is involved.
Status
This behavior is by design.
Note: This issue also occurs when the Group Policy setting is turned on in Windows XP and in Windows Server 2003.
More information
By default, the Clear virtual memory pagefile when system shuts down Group Policy setting is turned off. To confirm this setting on Windows 2000, on Windows XP, or on Windows Server 2003, follow these steps:
- Click Start, point to Settings, and then click Control Panel.
- Double-click Administrative Tools.
- Double-click Local Security Policy.
- Double-click Local Policies.
- Click Security Options.
- Look in the Effective Setting column to the right side of the Clear virtual memory pagefile when system shuts down entry.
To check this setting on Windows Vista and on later versions, follow these steps:
- Click Start, type secpol.msc, and then press ENTER.
- Expand Local Policies.
- Click Security Options.
- Look in the 'Security Setting column to the right side of the Shutdown: Clear virtual memory pagefile entry.
Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
