Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psrepository trusted or untrusted #34

Open
benohara opened this issue May 11, 2021 · 1 comment
Open

psrepository trusted or untrusted #34

benohara opened this issue May 11, 2021 · 1 comment

Comments

@benohara
Copy link

Im also seeing the psrepository correctivly change the trusted setting each run.

Strangely, ive i run puppet from the cli, it makes no changes. If i run get-psrepository it all looks correct, psgallery is marked as trusted.

Running from the puppet console with debug shows..

stdout = {"name":"PSGallery","source_location":"https://www.powershellgallery.com/api/v2","installation_policy":"untrusted"}

Any ideas why its getting different info back when run via the console?

@benohara
Copy link
Author

benohara commented May 11, 2021

PS C:\Windows\system32> Get-PSRepository

Name                      InstallationPolicy   SourceLocation
----                      ------------------   --------------
PSGallery                 Trusted              https://www.powershellgallery.com/api/v2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant