Skip to content

Save-Module fails on WS2012R2 + WMF5 + Latest PSGet/PM #63

@brywang-msft

Description

@brywang-msft

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

  1. Install WMF for PS4 on Server 2012 R2
  2. Save-Module PowerShellGet
  3. Install latest PSGet and PackageManagement (this happens on 1.1.4 and 1.1.3 at least)
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions