Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

the installationpolicy of the PSGallery does not change even when the output states that #690

@fabricesemti80

Description

@fabricesemti80

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

As I explained it here: https://stackoverflow.com/questions/74549128/why-is-the-installationpolicy-of-the-psgallery-does-not-change-even-when-puppet?noredirect=1#comment131597704_74549128
I am using the Puppet module wrapped around this, and it gives me the output it changed the galery from untrusted to trusted, but in reallity - checking after the Puppet run with Get-Psgalery - it is not updated.
On Stack overflow I have been suggested it is rather an issue with the module than Puppet, so I am hoping to get some advise?

Expected behavior

Repo changes from `untrusted` to `trusted` installationpolicy

Actual behavior

Repo's installation policy does not change

Error details

no error

Environment data

PS C:\Users\Administrator> Get-Module PowerShellGet; $PSVersionTable 

Name                           Value                                                                                                                                                                                                              
----                           -----                                                                                                                                                                                                              
PSVersion                      5.1.17763.592                                                                                                                                                                                                      
PSEdition                      Desktop                                                                                                                                                                                                            
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                                                                            
BuildVersion                   10.0.17763.592                                                                                                                                                                                                     
CLRVersion                     4.0.30319.42000                                                                                                                                                                                                    
WSManStackVersion              3.0                                                                                                                                                                                                                
PSRemotingProtocolVersion      2.3                                                                                                                                                                                                                
SerializationVersion           1.1.0.1

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions