this post was submitted on 26 Mar 2024
1292 points (98.5% liked)

Curated Tumblr

3986 readers
620 users here now

For preserving the least toxic and most culturally relevant Tumblr heritage posts.

Image descriptions and plain text captions of written content are expected of all screenshots. Here are some image text extractors (I looked these up quick and will gladly take FOSS recommendations):

-web

-iOS

-android

Please begin copied raw text posts (lacking a screenshot that makes it apparent it is from Tumblr) with:

# This has been reposted here to Lemmy as part of the "Curated Tumblr Project."

I made the icon using multiple creative commons svg resources, the banner is this.

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 8 months ago* (last edited 8 months ago)

Run a PowerShell session as admin and enter the following commands:

Get-AppxProvisionedPackage -Online | Where-Object { $_.PackageName -match "OneDrive" } | Remove-AppxProvisionedPackage -Online -AllUsers

Get-AppxPackage -AllUsers | Where-Object { $_.Name -match "OneDrive" } | Remove-AppxPackage -AllUsers

Might be easier to do this in PowerShell ISE so you can edit these two commands. But this will first remove the installer package for OneDrive so that it can't reinstall again, and then it removes the installed app from all profiles.

I haven't personally tested this, but I use PowerShell professionally and the commands are solid. If it didn't work then it just means that Microsoft packaged OneDrive in a different manner than the other built-in apps. You can also remove other annoying apps that are pre-loaded this way. Just swap out "OneDrive" for the proper name or partial proper name of the appx app. Use Get-AppxPackage by itself to learn what the proper names are for the apps that are installed.