UninstallOneDrive
1.1.1
Uninstalls Microsoft OneDrive. Usage: UninstallOneDrive
Installation Options
Owners
Package Details
Author(s)
- asherto
Tags
PowerShell Microsoft OneDrive remove uninstall delete erase
Functions
Get-GitHubRelease CheckForUpdate UpdateSelf Uninstall-OneDrive Get-UninstallString Test-OneDriveInstalled
Dependencies
This script has no dependencies.
Release Notes
[Version 0.0.1] - Initial release.
[Version 0.0.2] - Updated description.
[Version 0.0.3] - Added to GitHub.
[Version 0.0.4] - Fixed signature.
[Version 0.0.5] - Fixed various bugs.
[Version 1.0.0] - Major refactor. Added removal of OneDrive scheduled tasks. Added Help, Version, CheckForUpdate, and UpdateSelf.
[Version 1.0.1] - Add Uninstall Complete verbiage.
[Version 1.0.2] - Fix position on Uninstall Complete verbiage.
[Version 1.1.0] - Add per-user OneDrive removal (LOCALAPPDATA and HKCU). Fix version comparison in CheckForUpdate. Fix uninstall string parsing when no arguments present. Check uninstaller exit codes. Verify removal before reporting success. Fix CheckForUpdate verbiage. Add runtime elevation check so running via irm | iex without administrator rights fails with a clear message instead of partially running.
[Version 1.1.1] - Add upfront OneDrive detection with early exit when not installed. Fix exit statements closing the console when run via irm | iex. Add multi-user support: detect OneDrive in any user profile and remove the OneDrive app folder from every profile (user data in the OneDrive folder is never touched).
FileList
- UninstallOneDrive.nuspec
- UninstallOneDrive.ps1