@rmbolger pls see the below output:
Command PS C:\Users\Administrator> Get-PACertificate '*.abc-dc.com' | Set-RDGWCertificate -RemoveOldCert -Verbose
VERBOSE: Setting new RDGW thumbprint value
Set-Item : Access to the object at RDS:\GatewayServer\SSLCertificate\Thumbprint is denied for the cmdlet Set-Item.The
certificate is not valid or you do not have sufficient permissions to perform this operation.
At C:\Users\Administrator\Documents\WindowsPowerShell\Modules\Posh-ACME.Deploy\Public\Set-RDGWCertificate.ps1:43
char:17
- ... Set-Item RDS:\GatewayServer\SSLCertificate\Thumbprint -Va ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : PermissionDenied: (
[Set-Item], AccessViolationException - FullyQualifiedErrorId : PermissionDenied,Microsoft.PowerShell.Commands.SetItemCommand
- CategoryInfo : PermissionDenied: (
How to fix this ?