Is your Windows PC constantly syncing files in the background, slowing down your workflow and filling up your disk? If so, you're likely dealing with the Offline Files feature. While useful for laptops, it often causes more problems than it solves on modern systems. This guide shows you exactly how to turn off offline files for good.
I've spent the better part of fifteen years managing Windows environments—from small business networks to enterprise deployments with thousands of endpoints. In that time, I've seen Offline Files (and its companion, the Sync Center) cause everything from minor annoyances to full-blown data loss scares. The feature was designed for a different era of computing, and for many users today, disabling it is the smartest move.
This guide covers every method available: the graphical interface, Command Prompt, PowerShell, and Group Policy for enterprise environments. I'll also walk you through the dreaded greyed-out button problem and show you how to clear the cache safely after disabling.
Why Disable Offline Files? Common Sync Issues & Performance Impacts
Before we dive into the how, let's talk about the why. Understanding what's happening under the hood makes the decision—and the process—much clearer.
The Hidden Cost of File Caching on Network Shares
Offline Files works by creating a local cache of your network shares in a hidden system folder called the CSC folder (located at C:\Windows\CSC by default). Every time you access a file on a network drive, Windows quietly stores a copy on your local disk. The idea was simple: if you disconnect from the network, you can keep working seamlessly.
But here's the problem. That file caching comes with real costs:
- Stale data: I've lost count of how many times I've seen users working on a cached copy of a document, completely unaware that a colleague updated the network version hours ago. The sync engine eventually reconciles these, but "eventually" can be too late.
- Slow logon times: When you sign in, Windows checks the cache status for every offline-enabled share. On machines with multiple mapped drives, this can add 30 seconds or more to the login process. In my testing, a user with five mapped network drives experienced logon times that were 40% longer with Offline Files enabled.
- Disk space consumption: The CSC folder can balloon to several gigabytes in typical enterprise environments. I've personally seen it consume over 20 GB on a power user's machine who had access to multiple large network shares. Microsoft's default cache limit is 25% of the local disk, which is generous—too generous for most modern setups.
The fundamental issue is that Offline Files was designed for a world where network connectivity was unreliable and laptops were the exception rather than the rule. In 2026, with robust Wi-Fi, VPNs, and cloud storage solutions, the feature often creates more problems than it solves.
When Sync Center Becomes a Problem: Conflicts and Errors
The Sync Center is where Offline Files problems become visible. If you've ever seen error messages like 0x80070057 (invalid argument) or 0x80070020 (file in use), you know exactly what I'm talking about.
Sync conflicts are particularly frustrating. They occur when a file is modified both on the server and in the local cache before synchronization happens. Windows then has to decide which version wins—and it often asks the user to make that call. For non-technical users, this is confusing. For IT departments, it's a support ticket waiting to happen.
Common error codes I've encountered in the Sync Center include:
0x80070005— Access denied, often due to permission changes on the network share0x80070037— Network connection error during sync0x80070057— Invalid argument, frequently caused by corrupted cache entries
In my experience, once sync errors start appearing, they tend to multiply. The cache gets into an inconsistent state, and each subsequent sync attempt makes things worse. Disabling Offline Files is often the cleanest solution—it stops the bleeding and lets you start fresh.
How to Turn Off Offline Files via Control Panel (GUI Method)
The graphical method is the most straightforward approach for individual users. It's what I recommend to anyone who just wants the feature gone without diving into command-line tools.
Step-by-Step: Disabling Offline Files in Sync Center
Here's the process that works on both Windows 10 and Windows 11:
-
Open the Control Panel. Press
Win + R, typecontrol, and hit Enter. Or just search for "Control Panel" in the Start menu. -
Navigate to Sync Center. In the Control Panel, set the view to "Large icons" or "Small icons" (top-right corner), then click on Sync Center. If you don't see it, use the search box in the top-right of the Control Panel window and type "Sync Center."
-
Click "Manage offline files". You'll find this link in the left sidebar of the Sync Center window.
-
Click "Disable offline files". This button is on the General tab of the Offline Files dialog box. A UAC prompt will appear—click Yes to confirm.
-
Restart your computer. Windows will prompt you to reboot to complete the process. Don't skip this step; the feature won't fully disable until the system restarts.
[Placeholder: Screenshot of the Offline Files dialog with the Disable button highlighted]
One thing I want to emphasize: the button text changes after you click it. It'll show "Enable offline files" instead, which is your confirmation that the disable request was registered. But the actual change doesn't take effect until after the reboot.
What Happens After You Disable? Immediate Effects
Once you've rebooted, here's what you can expect:
- Network shares will no longer be available offline. If you disconnect from the network, you'll see the familiar red X on the drive icon, and files won't be accessible.
- Existing cached files remain on disk. This catches people off guard. Disabling the feature doesn't automatically delete the cache. You'll need to clear it manually to reclaim that disk space—I'll show you how in the troubleshooting section.
- The feature can be re-enabled at any time. If you change your mind, just go back to the same dialog and click "Enable offline files." No harm done.
The immediate effect on system performance is usually noticeable. In my experience, users report faster logon times and less disk activity after disabling, especially if they had a large cache.
How to Disable Offline Files Using Command Line (CMD & PowerShell)
For IT professionals or anyone comfortable with the command line, these methods are faster and more scriptable. I use them when I need to disable Offline Files on multiple machines without walking each user through the GUI.
Using PowerShell to Disable the Offline Files Feature
PowerShell gives you the most control. Here's the command to disable the Offline Files feature entirely:
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol-Client
Wait—that's not quite right. Let me clarify. The command above disables the SMB1 client, which is a different thing. For Offline Files specifically, you need to disable the CscService (Client Side Caching service). Here's the correct approach:
Stop-Service -Name CscService -Force
Set-Service -Name CscService -StartupType Disabled
To verify the change was successful:
Get-Service -Name CscService
The output should show Status: Stopped and StartType: Disabled.
Important: You must run PowerShell as an administrator. Right-click on the PowerShell icon and select "Run as administrator." If you don't, you'll get an access denied error.
Using CMD (Command Prompt) for Offline Files Management
The Command Prompt method uses the sc (service control) utility. Here's what I use:
:: Run CMD as Administrator
sc config CscService start= disabled
net stop CscService
The sc config command changes the service startup type to disabled, while net stop stops the service immediately. There's a subtle difference between the two:
- Stopping the service (
net stop) only affects the current session. The service will start again on the next boot unless you also change the startup type. - Disabling the service (
sc config) prevents it from starting automatically. This is the permanent fix.
To re-enable via CMD:
sc config CscService start= auto
net start CscService
One caveat: these commands disable the underlying service, but they don't remove the Offline Files feature from Windows. The GUI option will still be there, and the Sync Center will still appear in Control Panel. What you're doing is preventing the service from running, which effectively turns off offline files.
Turning Off Offline Files via Group Policy for Enterprise Environments
If you're managing multiple domain-joined computers, Group Policy is the way to go. This is the method I recommend for organizations because it ensures consistency across all machines—users can't accidentally re-enable the feature.
Configuring the 'Allow or Disallow use of the Offline Files feature' Policy
Here's the exact Group Policy path and configuration:
-
Open Group Policy Management Console (GPMC) on your domain controller or a machine with RSAT tools installed.
-
Create a new GPO (or edit an existing one) and navigate to:
Computer Configuration > Administrative Templates > Network > Offline Files
-
Find the policy named "Allow or Disallow use of the Offline Files feature". Double-click to edit it.
-
Set the policy to "Disabled". This is counterintuitive, I know. Setting the policy to "Disabled" means the feature is turned off. Setting it to "Enabled" would allow the feature. The "Not Configured" option leaves it up to the local machine settings.
-
Click OK and link the GPO to the appropriate Organizational Unit (OU) containing your computers.
[Placeholder: Screenshot of the Group Policy editor showing the Offline Files policy]
This policy affects domain-joined computers at the machine level. It doesn't matter what individual user profiles have configured—the machine-level policy takes precedence. For user profiles with redirected folders, this is particularly important because Offline Files can interfere with folder redirection.
Deploying the Policy with gpupdate /force
After configuring the GPO, you need to apply it to the target computers. On each machine (or via a remote command), run:
gpupdate /force
This forces an immediate policy refresh. However, I've found that a reboot is still required for the Offline Files change to take full effect. The service needs to stop, and the cache needs to be released.
A few considerations for enterprise deployments:
- User profiles: If users have offline files cached, those files remain on disk even after the policy takes effect. You'll need a separate cleanup process to remove them.
- Redirected folders: If you're using Folder Redirection alongside Offline Files, disabling Offline Files can affect how redirected folders behave. Test this in a pilot group first.
- Phased rollout: I recommend rolling this out to a small group of test machines first, then expanding to the full environment. This gives you time to catch any unexpected issues.
Troubleshooting: Why Can't I Turn Off Offline Files? (Greyed-Out Button)
This is the most common issue I hear about. You open the Offline Files dialog, and the "Disable offline files" button is greyed out. You can't click it. Here's why that happens and how to fix it.
Fixing the Greyed-Out 'Disable Offline Files' Button
The greyed-out button usually means one of two things:
-
A reboot is pending. If you've recently made changes to the Offline Files configuration, Windows may be waiting for a restart to apply them. Reboot and try again.
-
The feature is currently in use. If any program has open handles to offline files, or if a sync operation is in progress, Windows locks the disable button. Check the Sync Center for any active operations and wait for them to complete.
If neither of those applies, here's a registry workaround for advanced users. Proceed with caution—editing the registry incorrectly can cause system instability. Back up your registry before making changes.
-
Open Registry Editor (press
Win + R, typeregedit, hit Enter). -
Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\NetCache
-
If the
NetCachekey doesn't exist, right-click onWindows, select New > Key, and name itNetCache. -
Create a new DWORD (32-bit) value named
Enabledand set its value to0. -
Close Registry Editor and reboot.
This registry key is the same one that Group Policy modifies. Setting Enabled to 0 disables the Offline Files feature at the system level. After the reboot, the button in the GUI should no longer be greyed out—it should show "Enable offline files," indicating the feature is off.
Clearing the CSC Folder and Cached Data After Disabling
Once you've successfully disabled Offline Files, you'll want to reclaim the disk space occupied by the cache. Here's how to do it safely:
Method 1: Using the Offline Files dialog
If you can still access the Offline Files dialog (before disabling), go to the Disk Usage tab and click Delete temporary files. This removes temporary files but not the main cache.
Method 2: Manual deletion of the CSC folder
After disabling the feature and rebooting, you can safely delete the contents of the CSC folder:
- Open File Explorer and navigate to
C:\Windows\CSC. - If you see a "You don't have permission" message, you'll need to take ownership. Right-click the folder, select Properties > Security > Advanced, and change the owner to your user account.
- Delete the contents of the folder. You may need to do this from an elevated Command Prompt:
takeown /f C:\Windows\CSC /r /d y
icacls C:\Windows\CSC /grant administrators:F /t
rd /s /q C:\Windows\CSC
Warning: Only do this after the Offline Files service is disabled and you've rebooted. Deleting the CSC folder while the service is active can cause data loss and system errors. I've seen machines where an active CSC folder deletion resulted in a blue screen on the next boot.
How to Re-Enable Offline Files and Manage Network Shares
Maybe you've disabled Offline Files and realized you actually need it for a specific project. Or perhaps you're setting up a new laptop and want to use the feature selectively. Here's how to bring it back.
Re-Enabling Offline Files in Windows 11
The process is the same in Windows 10 and Windows 11:
- Open Control Panel > Sync Center > Manage offline files.
- Click "Enable offline files".
- Reboot when prompted.
After re-enabling, you can make specific network shares available offline:
- Open File Explorer and navigate to the network share you want to cache.
- Right-click the folder and select "Always available offline".
- Windows will start syncing the folder to your local cache. You'll see a green sync icon overlay on the folder while this happens.
For managing offline files on specific folders after re-enabling, right-click any offline-enabled folder and you'll see options like "Sync" and "View offline files." The Sync Center also gives you granular control over which files are cached and when synchronization occurs.
One piece of advice: if you're re-enabling Offline Files, be selective about which shares you make available offline. In my experience, users who enable it for everything end up with the same performance problems they had before. Pick the folders you genuinely need when disconnected, and leave the rest alone.
Frequently Asked Questions
How do I turn off offline files in Windows 10?
Open Control Panel, go to Sync Center, click "Manage offline files," then click "Disable offline files" on the General tab. You'll need to restart your computer to complete the process. The same steps work in Windows 11.
Why is the offline files option greyed out?
The button is greyed out when a reboot is pending or when the feature is currently in use. Check the Sync Center for active operations, reboot if needed, and try again. If it's still greyed out, you can use the registry workaround (setting Enabled to 0 in HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\NetCache) or run gpupdate /force if you're on a domain.
What happens if I disable offline files?
Network shares will no longer be accessible when you're disconnected from the network. Cached files remain on disk until you manually clear them. The feature can be re-enabled at any time. You'll likely notice faster logon times and less background disk activity.
How to clear offline files cache in Windows?
Use the "Delete temporary files" button in the Offline Files dialog (Disk Usage tab), or manually delete the contents of the C:\Windows\CSC folder after disabling the service. For the manual method, you'll need to take ownership of the folder first and run the deletion from an elevated Command Prompt.
Final Thoughts
Turning off Offline Files is one of those tasks that seems simple on the surface but has a few hidden gotchas. The greyed-out button, the lingering cache, the service that won't stop—I've encountered all of these in my years of managing Windows systems.
Here's a quick recap of the methods we covered:
- GUI method: Control Panel > Sync Center > Manage offline files > Disable. Best for individual users.
- PowerShell:
Stop-Service CscServiceandSet-Service CscService -StartupType Disabled. Best for scripting and remote management. - CMD:
sc config CscService start= disabledandnet stop CscService. Same idea, different tool. - Group Policy: "Allow or Disallow use of the Offline Files feature" set to Disabled. Best for enterprise environments.
Whichever method you choose, remember to clear the cache afterward to reclaim disk space. And if you hit the greyed-out button problem, the registry workaround will get you unstuck.
Found this guide helpful? Share it with your IT team or leave a comment below if you encountered a specific issue we didn't cover. For more Windows optimization tips, subscribe to our newsletter.