Skip to content

Set-Content Encoding Byte is not available in Powershell 7 #29

@gitnol

Description

@gitnol

$certbytes | Set-Content -Encoding Byte -Path $pfxPath -ea Stop

Change the line 424 to:
[System.IO.File]::WriteAllBytes($pfxPath, $certbytes)

Reason: At Least in Powershell 7 the parameter Encoding Byte is not Available as parameter of Set-Content.
Use the System.IO.File Class directly. :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions