Open in the explorer

Warn users who are low on disk space

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › OneDrive
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
OneDrive.admx
Internal name
OneDrive/WarningMinDiskSpaceLimitInMB

Explanation

This setting lets you specify a minimum amount of available disk space and warn users when the OneDrive sync app (OneDrive.exe) downloads a file that causes them to have less than this amount.

Users will be prompted with options to help free up space.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\OneDrive
Value name
WarningMinDiskSpaceLimitInMB
StateValue written
Enablednot defined in the ADMX (see the options below)
Disablednot defined in the ADMX (see the options below)

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: OneDrive/WarningMinDiskSpaceLimitInMB
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'WarningMinDiskSpaceLimitInMB' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)
# Minimum available disk space
Set-ItemProperty -Path $k -Name 'WarningMinDiskSpaceLimitInMB' -Value 500 -Type DWord  # between 0 and 10240000

Disable

# Disable: OneDrive/WarningMinDiskSpaceLimitInMB
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'WarningMinDiskSpaceLimitInMB' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": OneDrive/WarningMinDiskSpaceLimitInMB
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\OneDrive'
Remove-ItemProperty -Path $k -Name 'WarningMinDiskSpaceLimitInMB' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Minimum available disk space:warningMinDiskSpaceMBNumeric boxdecimalWarningMinDiskSpaceLimitInMBREG_DWORD
Min: 0 · Max: 10240000 · Default (UI): 500

Application

Microsoft OneDrive (Microsoft) — October 2026 templates

October 2026 templates from pl4nty/web-admx-tool.