Skip to content

Set-PSResourcerepository fails on new installation of PS-Core 7.6.7 #2066

Closed

Description

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

This is close to the issue #1965.

On a new install of pwsh on Windows and macOS this Command:
Set-PSResourceRepository -PSGallery -trusted
fails

Expected behavior

PS> Set-PSResourceRepository -PSGallery -trusted

Actual behavior

PS> Set-PSResourceRepository -PSGallery -trusted

`Set-PSResourceRepository: Cannot retrieve the dynamic parameters for the cmdlet. Loading repository store failed: Could not find a part of the path '/Users/username/Library/Application Support/PSResourceget/PSResourceRepository.xml'`

Error details

Environment data

PSVersion: 7.6.7
PSEdition: Core
GitCommitId: 767
OS: Microsoft Windows 10.0.26200
Platform: Win32NT
PSCompatibleVersions: {1.0, 2.0, 3.0, 4.0, ...}
PSRemotingProtocolVersion: 2.4
SerializationVersion: 1.1.0.1
WSManStackVersion: 3.0

Visuals

No response

Activity

  1. adityapatwardhan commented on Oct 16, 2026

    @adityapatwardhan
    Member

    Roman Stadlmair (@RStadlmair) - Can you include logs using -Debug if possible.

  2. SydneyhSmith commented on Oct 22, 2026

    @SydneyhSmith
    Collaborator

    fixed by #2067

  3. RStadlmair commented on Oct 23, 2026

    @RStadlmair
    Author

    Hey ! Thanks for the quick fix !
    R.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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