Disable "Work Folders Client" feature
- Windows only
- Single action
- Risk: High
- Batch (batchfile)
- Administrator rights required
- Fully reversible
Overview
See: Work Folders overview | Microsoft Learn | learn.microsoft.com
Overview of default feature statuses
Feature name | WorkFolders-Client |
Display name | Work Folders Client |
Description | Allows file synchronization with a configured file server. |
Default (Windows 11 ≥ 23H2) | 🟢 Enabled |
Default (Windows 10 ≥ 22H2) | 🟢 Enabled |
Tips & Tricks
This script should only be used by advanced users.
This script is not recommended for daily use as it breaks important functionality.
This action is completely reversible, you can restore your changes to the initial/default state.
The restore/revert methods provided here can help you fix issues.
Apply Now
Choose one of three ways to apply:
How to download and run
- Download the script file by clicking on the button above. Use button above to restore changes.
- If warned by your browser, keep the file.
- Open the downloaded file.
- Once it's done, press any key to exit the window.
- Restart your computer for all changes to take affect.
Apply with privacy.sexy
Guided, automated application with safety checksHow to use privacy.sexy
privacy.sexy is free and open-source application that lets securely apply this action easily with optionally more advanced options.
- Apply
- Revert
:: Disable the "WorkFolders-Client" feature
PowerShell -ExecutionPolicy Unrestricted -Command "$featureName = 'WorkFolders-Client'; $feature = Get-WindowsOptionalFeature -FeatureName "^""$featureName"^"" -Online -ErrorAction Stop; if (-Not $feature) { Write-Output "^""Skipping: The feature `"^""$featureName`"^"" is not found. No action required."^""; Exit 0; }; if ($feature.State -eq [Microsoft.Dism.Commands.FeatureState]::Disabled) { Write-Output "^""Skipping: The feature `"^""$featureName`"^"" is already disabled. No action required."^""; Exit 0; }; try { Write-Host "^""Disabling feature: `"^""$featureName`"^""."^""; Disable-WindowsOptionalFeature -FeatureName "^""$featureName"^"" -Online -NoRestart -LogLevel ([Microsoft.Dism.Commands.LogLevel]::Errors) -WarningAction SilentlyContinue -ErrorAction Stop | Out-Null; } catch { Write-Error "^""Failed to disable the feature `"^""$featureName`"^"": $($_.Exception.Message)"^""; Exit 1; }; Write-Output "^""Successfully disabled the feature `"^""$featureName`"^""."^""; Exit 0"
:: Revert the 'WorkFolders-Client' feature to its default settings
PowerShell -ExecutionPolicy Unrestricted -Command "$featureName = 'WorkFolders-Client'; $ignoreMissingOnRevert = $false; $disabledByDefault = $false; $feature = Get-WindowsOptionalFeature -FeatureName "^""$featureName"^"" -Online -ErrorAction Stop; if (-Not $feature) { if ($ignoreMissingOnRevert) { Write-Output "^""Skipping: The feature `"^""$featureName`"^"" is not found. No action required."^""; Exit 0; }; Write-Error "^""Failed to revert changes to the feature `"^""$featureName`"^"". The feature is not found."^""; Exit 1; }; if ($feature.State -eq [Microsoft.Dism.Commands.FeatureState]::Enabled) { Write-Output "^""Skipping: The feature `"^""$featureName`"^"" is already enabled. No action required."^""; Exit 0; }; if ($disabledByDefault) { Write-Output "^""Skipping: The feature `"^""$featureName`"^"" is already disabled and this is the default configuration."^""; Exit 0; }; try { Write-Host "^""Enabling feature: `"^""$featureName`"^""."^""; Enable-WindowsOptionalFeature -FeatureName "^""$featureName"^"" -Online -NoRestart -LogLevel ([Microsoft.Dism.Commands.LogLevel]::Errors) -WarningAction SilentlyContinue -ErrorAction Stop | Out-Null; } catch { Write-Error "^""Failed to enable feature `"^""$featureName`"^"": $($_.Exception.Message)"^""; Exit 1; }; Write-Output "^""Successfully enabled the feature `"^""$featureName`"^""."^""; Exit 0"
How to run commands
Open Command Prompt as administrator.
Step-by-step guideClick on Start menu
- Windows 11
- Windows 10
Type cmd
- Windows 11
- Windows 10
Right click on Command Prompt and select Run as administrator
- Windows 11
- Windows 10
Click on Yes to allow the app to make changes.
- Windows 11
- Windows 10
- Windows 11
- Windows 10
- Right click on command prompt to paste it.
- Press Enter to apply remaining code.
- Copy the code above.To restore changes, choose Revert code above.
- Paste the code into Command Prompt.
- Press Enter to apply the code.
- Optionally, restart your computer.Some scripts requires restarting your computer to take affect.
Similar Guides
Guides below work together with this guide to protect your privacy.
- Disable printing features
- Disable built-in Windows features
- Remove bloatware
This action belongs to Disable printing features. Online data privacy control on Windows: disable printing features to protect your private information using sensitive data privacy safeguard. Also noting that, steps for reset settings to defaults are included in this cheat sheet. Ethical technology use is made achievable with the implementation of onl... Read more on category page ▶
This action belongs to Disable built-in Windows features. Learn to disable built-in Windows features on Windows with this companion to secure your digital footprint with digital data privacy management. Not only that, this paper provides instructions to revert to factory settings. Trustworthy data privacy protection creates a safe space for personal growth an... Read more on category page ▶
This action belongs to Remove bloatware. Windows security tip: remove bloatware to manage device data practices measures effectively. Plus that, this playbook leads you toward how to revert back to standard settings. We respect individual privacy preferences as we build stronger online data privacy. Ready for better sensitive data handling op... Read more on category page ▶