How to Disable or Hide 'Unlink This PC' in OneDrive for Business
Question details
The user is looking for an Intune policy or registry setting to remove or hide the 'Unlink this PC' option from the OneDrive for Business sync client.

- Product
- OneDrive for Business
- Device & OS
- not provided
- Scenario
- Managing corporate device synchronization and restricting users from unlinking their corporate cloud storage accounts from local machines.
- Observed behavior
- Currently, OneDrive for Business does not provide any supported Intune policy or Group Policy setting to remove or hide the 'Unlink this PC' option.
Ensure you have administrator access to Microsoft Intune or Group Policy Management, as you will need to rely on overall device compliance policies rather than a direct app setting.
Use Alternative Device Management Controls and Submit Feedback
Since a direct policy to hide the option does not exist, administrators should utilize broader device management policies and submit feature requests to Microsoft.
Microsoft's documented OneDrive Group Policy settings do not currently include a control to disable or hide the 'Unlink this PC' option. This remains a longstanding feature request from IT administrators globally.
Instead of blocking the specific button, administrators must rely on endpoint management and access policies to secure company data.
Navigate to the Microsoft 365 Feedback portal online and suggest adding a formal Group Policy or Intune setting to hide the 'Unlink this PC' button.
Utilize Microsoft Intune compliance policies to restrict overall device access and manage how corporate data is handled on the endpoint.
Configure Azure Active Directory (Azure AD) Conditional Access policies to ensure only managed, compliant, and authenticated devices can sync company data, mitigating the risks if a user unlinks their PC.

Looking for a Seamless Office Suite? Try WPS Office
While managing complex cloud storage policies can be frustrating, choosing your daily productivity software doesn't have to be. WPS Office is a highly compatible, lightweight, and completely free alternative to Microsoft Office that easily handles all your document needs.
- 1. Download the installer: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install the software: Run the setup file and follow the quick on-screen instructions to install the suite.
- 3. Open and sync: Launch WPS Office, sign in if desired, and easily open files directly from your local OneDrive sync folder.

Frequently Asked Questions
Why do users typically need the 'Unlink this PC' option?
Users often use this option to stop syncing files if they are switching to a different account, troubleshooting persistent sync issues, or preparing to hand over their device to another user.
Will blocking the OneDrive application prevent users from unlinking?
Yes, if you use AppLocker or Intune to completely block the execution of OneDrive.exe, users cannot open the app settings to click 'Unlink this PC'. However, this also completely stops all file synchronization for the device.
Are there third-party tools to hide the Unlink button in OneDrive?
Modifying the OneDrive client interface using third-party tools or unsupported registry hacks is highly discouraged. It can cause software instability, trigger security alerts, and the changes will likely be overwritten during the next automatic OneDrive update.
Does WPS Office support saving files to a corporate OneDrive folder?
Yes, you can seamlessly save, edit, and open documents directly from your local OneDrive sync folder while using WPS Office, ensuring full compatibility with your organization's existing cloud storage workflow.




