Uninstall-Module fails when OneDrive has "Files-On-Demand" feature enabled
See original GitHub issueI am forced to disable this File-On-Demand feature in OneDrive in order to get this error to go away. This is a real inconvenience for those on an enterprise environment where users who don’t have rights to run as administrator cannot install modules under any other scope other than CurrentUser and don’t have the access to modify Policies that allow disabling of the File-On-Demand feature (which requires a registry edit).
Steps to Reproduce
- Install any module under the CurrentUser Scope
- Uninstall that module
Actual Results
Uninstall-Package : Access to the cloud file is denied
At line:1 char:1
+ Uninstall-Package Thor
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Microsoft.Power...ninstallPackage:UninstallPackage) [Uninstall-Package],
Exception
+ FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.RemoveItemCommand,Mic
rosoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage
Expected Results
The module should uninstall successfully.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Uninstall-Module fails when OneDrive has "Files-On- ...
I am forced to disable this File-On-Demand feature in OneDrive in order to get this error to go away. This is a real...
Read more >How to fix "A newer version of OneDrive is installed"
Press the Windows key Press the Windows key + R to open a Run window. Type appwiz.cpl and click OK. Find Microsoft OneDrive...
Read more >OneDrive Error "Couldn't start Files on Demand"
1) First see fixes for OneDrive sync failure here: · 2) Try resetting OneDrive here: · 3) Right click OneDrive cloud icon in...
Read more >Fixes or workarounds for recent issues in OneDrive
"A different version of the OneDrive app is already connected to this account" error in macOS · Right-click or CTRL-click the OneDrive app....
Read more >7 Proven Ways to OneDrive Files On-Demand Not Working
OneDrive's Files On-Demand Not Working? Case 1. OneDrive On-Demand not working. "Hello, I installed the latest Windows Update, and manually upgrade OneDrive ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Issue-Label Bot is automatically applying the label
bug
to this issue, with a confidence of 0.81. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
I will get repro steps to you in the next 1-2 weeks with the v3 beta