Low Disk Space Alerts Not Logged in Windows 2022 Event Log

Bonick 275 Reputation points
2025-01-29T16:31:55.2033333+00:00

Windows Server 2022 is not logging the Low Disk Space alerts for drives in the Windows Event Log. It appears that the event should have an Event ID 2013, but no such event is being logged.

Microsoft System Center
Microsoft System Center
A suite of Microsoft systems management products that offer solutions for managing datacenter resources, private clouds, and client devices.
1,068 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,622 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AlexZhu-MSFT 6,346 Reputation points Microsoft Vendor
    2025-01-30T05:50:20.8333333+00:00

    Hi,

    You may check the following registry keys are present.

    For example, if free space is lower than 10%(0000000a), it triggers Event ID 2013

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters]

    "DiskSpaceThreshold"=dword:0000000a

    "LowDiskSpaceMinimum"=dword:00000000

    Besides the above, you can create a scheduled task to query Event ID 2013 and send out an e-mail notification if necessary.

    Besides the Event ID 2013, in the scheduled task, we can use a more accurate and active way to get the free space.

    Get-WmiObject -Class Win32_LogicalDisk | ? {$_. DriveType -eq 3} | select DeviceID, @{label='Total Size (GB)';expression={[math]::round($_.Size /1GB,2)}}, @{label='Free Size (GB)';expression= {[math]::round($_.FreeSpace /1GB,2)}} 
    
    

    powershell_disk_space

    Regards,

    Alex

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.