question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uninstall-Module fails when OneDrive has "Files-On-Demand" feature enabled

See original GitHub issue

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 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

  1. Install any module under the CurrentUser Scope
  2. 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:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
issue-label-bot[bot]commented, Sep 18, 2020

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.

1reaction
daniefercommented, Oct 2, 2020

I will get repro steps to you in the next 1-2 weeks with the v3 beta

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found