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
- 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.
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
Actual Results
Expected Results
The module should uninstall successfully.