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.

See Also

The Author — Nirmal Sharma

Nirmal Sharma avatar

Nirmal Sharma is a MCSEx3, MCITP and was awarded the Microsoft MVP award in Directory Services and Windows Networking. He specializes in Microsoft Azure, Office 365, Directory Services, Failover Clusters, Hyper-V, PowerShell Scripting and System Center products. Nirmal has been involved with Microsoft Technologies since 1994. In his spare time, he likes to help others and share some of his knowledge by writing tips and articles on various sites and contributing to PowerShell-based Dynamic Packs for www.ITDynamicPacks.Net solutions.

Featured Links