- This topic is empty.
- Post
-
- January 1, 2025 at 7:16 am
Weekend WikiKeymasterTo remove the Personal OneDrive Icon from devices managed by Microsoft Intune, you can configure policies to disable or hide access to personal OneDrive accounts while still allowing corporate or work accounts to function. Here are the steps to achieve this:
Scenario 1: Use Group Policy with Administrative Templates in Intune
- Sign in to Microsoft Intune:
- Go to the Intune Admin Center.
- Navigate to Administrative Templates:
- Go to Devices > Configuration profiles > + Create profile.
- Select Platform and Profile Type:
- Platform: Select Windows 10 and later.
- Profile type: Select Templates > Administrative Templates.
- Configure the OneDrive Policy:
- In the Settings Picker, search for the following policy:
Prevent the usage of OneDrive for file storage
- Set this policy to Enabled:
- This disables access to personal OneDrive accounts while allowing work or school accounts.
- In the Settings Picker, search for the following policy:
- Assign the Profile:
- Assign the profile to your target device group(s).
- Review and click Create.
Scenario 2: Use Configuration Profiles with CSP Settings
For more control over OneDrive configurations, you can use a Custom OMA-URI policy:
- Create a Configuration Profile:
- Go to Devices > Configuration profiles > + Create profile.
- Select Platform and Template:
- Platform: Choose Windows 10 and later.
- Profile type: Select Custom.
- Add OMA-URI Settings:
- Click Add and configure the following setting:
- Name: Remove Personal OneDrive Icon.
- OMA-URI:
./Device/Vendor/MSFT/Policy/Config/OneDrive/DisablePersonalSync
- Data type: Integer.
- Value:
1
.
- Setting this value to
1
disables syncing personal OneDrive accounts, effectively removing the icon for personal accounts while keeping the work/school accounts enabled.
- Click Add and configure the following setting:
- Assign the Profile:
- Assign the profile to the target device group(s).
- Save and Deploy:
- Click Next to finalize and deploy the policy.
Scenario 3: Remove the OneDrive App (Optional)
If you want to completely remove OneDrive, including the application, follow these steps:
- Create a PowerShell Script:
- Use a PowerShell script to uninstall OneDrive:
%SystemRoot%\System32\OneDriveSetup.exe /uninstall
- Use a PowerShell script to uninstall OneDrive:
- Deploy the Script Using Intune:
- Go to Devices > Scripts > + Add.
- Select PowerShell as the script type.
- Upload the script, assign it to target devices, and deploy.
Verification
- Monitor Policy Deployment:
- Go to Devices > Monitor > Configuration Profiles or Scripts.
- Confirm the deployment status.
- Check on Devices:
- Verify that the Personal OneDrive icon is no longer visible in File Explorer or the taskbar.
These configurations ensure that personal OneDrive accounts are disabled or hidden on corporate devices while keeping work/school accounts functional. Let me know if you need further help with implementation!
- You must be logged in to reply to this topic.