Force Windows Servers To Log An Event Entry For Disk Space

by [Published on 17 Nov. 2010 / Last Updated on 10 Oct. 2009]

This article explains a registry hack you can use to configure Disk Space Threshold on Windows Servers.

By default a computer running Windows Server 2003 and Windows Server 2008 notifies event viewer if a disk space falls below 10% of the total disk space for every drive letter. You can modify this behaviour by using the following registry entry:

  • KEY Name: HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
  • Registry Entry: DiskSpaceThreshold
  • Data Type: REG_DWORD
  • Value: 0-99 Percent

The above registry entry does not exist by default. You need to create it. If the percentage of the free space falls below the value of this entry, then the Server service creates the following event in the System Log in Event Viewer:

"The disk is at or near capacity. You might need to delete some files. Event ID would be 2013.

The Author — Nirmal Sharma

Nirmal Sharma avatar

Nirmal Sharma is a MCSEx3, MCITP, and was awarded Microsoft MVP in Directory Services. In his spare time, he likes to help others and share some of his knowledge by writing tips and articles for various online communities. Nirmal can also be found contributing to PowerShell based Dynamic Packs for ADHealthProf.ITDynamicPacks.Net solutions.

Latest Contributions

Featured Links