Right-click the OneDrive cloud icon in the taskbar
Select Settings
Open the Account tab
Click Unlink this PC
Confirm the unlink action
Open OneDrive settings again
Go to the General tab
Uncheck Start OneDrive automatically when I sign in to Windows
Open Task Manager
Go to the Startup apps tab
Disable Microsoft OneDrive
Open Settings
Go to Apps
Select Installed apps
Find Microsoft OneDrive
Click the three-dot menu
Select Uninstall
Confirm the uninstall action
Open Group Policy Editor
Go to Computer Configuration
Go to Administrative Templates
Go to Windows Components
Open OneDrive
Enable Prevent the usage of OneDrive for file storage
Open Registry Editor
Go to HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsOneDrive
Create a DWORD value named DisableFileSyncNGSC
Set the value to 1
