Microsoft recently changed their download repository for Windows Powershell to require TLS 1.2+ which Windows Powershell 5.1 doesn't support without the runtime setting change to Net.ServicePointManager
.
Can I change Puppet to use Pwsh (7.x) as the default or is there some Puppet code I can change to inject the Net.ServicePointManager
snippet into to configured 5.1 to support TLS 1.2 in all Puppet initiated Windows Powershell sessions?
The underlying issue I'm trying to solve is package
failing with an error similar to this.