GPRegistryPolicyParser icon indicating copy to clipboard operation
GPRegistryPolicyParser copied to clipboard

Add full pwsh7 compatibility

Open breakwaterlabs opened this issue 2 years ago • 1 comments

Powershell 7 does not support -encoding byte on add/get content. Instead it uses the 'asbytestream' switch.

This uses parameter splatting to convert all references to add- and get-content to be compatible regardless of powershell version.

PR Summary

PR Context

breakwaterlabs avatar Aug 18 '23 17:08 breakwaterlabs

@microsoft-github-policy-service agree

breakwaterlabs avatar Aug 18 '23 17:08 breakwaterlabs