“The Disk Is Full Trying to Write to C:” on RDS (FSLogix)

Windows logo

Short answer: on a Remote Desktop or Azure Virtual Desktop server that uses FSLogix, “the disk is full trying to write to C:” usually means your own profile container is full, not the server’s C: drive. Your profile lives in a virtual disk with a size limit. Clear the Outlook cache file and app caches inside it, reduce how much mail Outlook keeps offline, and if you really need the space, raise the container’s size limit.

A professional services firm contacted us because one of their staff kept getting “The disk is full trying to write to C:” in Word on the Remote Desktop server. Downloads failed too, and signing out and back in seemed to help for a while. The server itself had hundreds of gigabytes free. Her FSLogix profile container, capped at about 39 GB, had 0 bytes left. The space had gone on a 15.9 GB Outlook cache file, about 6 GB of emails saved by a practice management add-in, browser and app caches, and a full Downloads folder. Here is what we found and how to fix it.

Fixed by Rohan Colley, Senior Systems Administrator at GCIT. Written up by Elliot Munro, CISO.

Symptoms

Inside a Remote Desktop (RDS) or Azure Virtual Desktop session, saving a document fails with:

The disk is full trying to write to C:. Free some space on this drive, or save the document on another disk.
Try one or more of the following:
* Close any unneeded documents, programs, and windows.
* Save the document on another disk.

Microsoft Word error: The disk is full trying to write to C:. Free some space on this drive, or save the document on another disk

Other signs of a full profile container include “There is not enough space on the disk” in other apps, downloads that stop part way, Outlook warnings about its data file, low disk space notifications that only you get, and problems that ease after signing out and back in. People search for this as “disk is full trying to write to C: RDS”, “FSLogix profile full” or “Remote Desktop low disk space for one user”.

Affected Software

  • Platform: Windows Server Remote Desktop Session Hosts and Azure Virtual Desktop session hosts
  • Related Services: FSLogix profile containers (VHD or VHDX files on a file share), Microsoft Outlook in Cached Exchange Mode, OneDrive, Microsoft Edge, Microsoft Teams

Cause

FSLogix keeps each user’s whole Windows profile (everything under C:\Users\[username]) inside a virtual disk file stored on a file share. When you sign in, that disk is attached to the server and appears as your profile folder. Apps still see it as part of C:, so when the container is full they report that C: is full, even if the server’s real C: drive has plenty of room.

Each container has a maximum size set by the FSLogix SizeInMBs setting. The default is 30,000 MB (about 30 GB). The things that fill it fastest are:

  • The Outlook offline cache file (.ost), which grows with the mailbox when Outlook keeps a lot of mail offline
  • Edge, Teams, OneDrive and Office caches
  • The Downloads folder
  • Line-of-business apps that keep their own working copies in AppData. In our case an add-in that captures emails for matching to client files was meant to clear itself after 45 days but never did.

Signing out and in can seem to help because some temporary files are cleared at sign-out, but the container fills up again within days.

Resolution

Step 1: Confirm the profile container is full

  1. While the user is signed in, run this in an elevated PowerShell window on the session host:
    Get-Volume | Where-Object FileSystemLabel -like "Profile*" | Select-Object FileSystemLabel, SizeRemaining, Size
    FSLogix labels each attached container with the user’s name. A SizeRemaining near zero confirms the problem.
  2. Check what is using the space by measuring the main folders under the user’s profile, especially AppData\Local\Microsoft\Outlook, AppData\Local\Microsoft\Edge, AppData\Local app folders and Downloads.

Step 2: Free space safely

  1. Clear caches that rebuild themselves: Edge and Chrome cache folders (not the profile or favourites), Teams cache, Office web caches, AppData\Local\Temp and the Recycle Bin.
  2. Rebuild an oversized Outlook cache. Close Outlook fully, then delete the user’s .ost file. Outlook downloads a fresh copy next time it opens, so keep the .nst file and expect the rebuild to take a while for a large mailbox.
  3. Ask the user to clear out Downloads, or move files they need into the right business folder.
  4. Do not delete app working folders without checking. Folders under AppData that belong to business software can hold real work. In our case the add-in folder held client correspondence, so we confirmed with the client and the vendor first, then moved files older than 60 days to a secured archive rather than deleting them.

Step 3: Stop it filling up again

  1. Limit how much mail Outlook keeps offline with the Cached Exchange Mode sync window (for example 3, 6 or 12 months) through Group Policy or Intune. For very heavy mailbox users, even 12 months can be large, so check the mailbox size.
  2. If a user genuinely needs more room, raise SizeInMBs under HKLM\SOFTWARE\FSLogix\Profiles on the session hosts (or in your FSLogix Group Policy). With dynamic disks the container grows to the new limit at the next sign-in. Microsoft recommends planning for at least 30 percent free space.
  3. Make sure disk compaction is on: VHDCompactDisk under HKLM\SOFTWARE\FSLogix\Apps set to 1 (the default in current FSLogix releases). Without it, files you delete free space inside the container but the file on the share stays the same size.
  4. For app folders that never clean themselves up, schedule a cleanup that runs in each user’s session at sign-in, logs what it moved and starts in report-only mode.
  5. Monitor container free space and the free space on the file share that holds the containers, so you hear about it before users do.

Important Notes

  • Check which server the user is actually on. In our case the ticket named one session host, but the user was signed in to the other one. Look up the user’s live session before you start measuring disks.
  • Get approval before removing user data. Caches are safe to clear. Anything that looks like documents or client correspondence needs the user’s or business owner’s approval first, and a record of what was moved.
  • Look for others heading the same way. When we measured the other profiles on the same servers, several more users were close to full with the same pattern. Fixing it for everyone at once saves repeat tickets.
  • Clean up old containers. Containers belonging to staff who have left keep using space on the file share. Remove them after a hold period once you have confirmed the accounts are gone.

If your Remote Desktop or virtual desktop users keep running out of space, get in touch with our team.

Was this article helpful?
Ready to secure and simplify your IT? Talk to a GCIT expert today.