-
Notifications
You must be signed in to change notification settings - Fork 100
Closed
Labels
Description
Some environments with the setup in the title fail. Others are unable to repro.
Repro
Save-Module on certain WS2012R2 + WMF5 + Latest PSGet/PM environments fails. AdministratorRightsNeededOrSpecifyCurrentUserScope appears to be in PSGet, though this seems to be related to contract issues between PSGet and PM, possibly due to a bad previous installation.
Steps
- Install WMF for PS4 on Server 2012 R2
- Save-Module PowerShellGet
- Install latest PSGet and PackageManagement (this happens on 1.1.4 and 1.1.3 at least)
- save-module packagemanagement -requiredversion 1.1.3.0 -path $somePath (also tried xjea)
Expected results
Package is saved or a real error is shown
Actual results
WARNING: The property 'AdministratorRightsNeededOrSpecifyCurrentUserScope' cannot be found on this object. Verify that
the property exists.
PackageManagement\Save-Package : Unable to save the module 'PackageManagement'.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\PSModule.psm1:1616 char:21