davidobrien1985 / DscResources

This repository will contain custom PowerShell DSC Resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PSModuleRepositoryResource to be used to set existing repository to trusted/untrusted

jbpaux opened this issue · comments

Hello,

The PSModuleRepositoryResource is great to set repositories but you need to specify Name and SourceLocation. This is great to add new repositories but if you just want to set an existing repository to trusted it's overkill to specify again the source (example : PSGallery).
The underlying command should be Set-PSRepository -Name $name -InstallationPolicy $true/$false no need to add the sourcelocation