Product: PowerShell Universal
Version: 5.0.7
Error encountered when I run the following:
Get-PSUScript -ComputerName “https://fqdn:4443” -AppToken $AppToken -TrustCertificate
Get-PSUScript: Status(StatusCode=“Unimplemented”, Detail=“Bad gRPC response. HTTP status code: 404”)
This command works:
Connect-PSUServer -ComputerName “https://fqdn:4443” -AppToken $AppToken
I have tried this from both PowerShell on another computer and from within an app running on the PSU server.
The certificate is valid and signed by an external authority.
Any ideas welcome.
App settings:
"Kestrel": {
"Endpoints": {
"HTTPS": {
"Url": "https://*:4443",
"Certificate": {
"Subject": "fqdn",
"Store": "My",
"Location": "LocalMachine",
"AllowInvalid": true
}
}
},
"RedirectToHttps": "true",
"UseHttpSys": "false",
"BasePath": "",
"Hsts": {
"MaxAgeDays": 365
},
"CookiePolicy": ""
},
Also for API section in AppSettings:
"Api": {
"OpenAPI": {
"Name": "Endpoints",
"Description": "Endpoints defined within the PowerShell Universal admin console.",
"Url": "v2",
"Version": "v2"
},
"Url": "https://fqdn:4443",
"GrpcPort": 0,
"TrustCertificate": true
},
As I said earlier, I have tried running this interactively from Powershell and from an app. The app is running under a new environment. So not running under the integrated environment.
This is a new installation of PowerShell Universal. running version 5.7.
I have looked at the following forum posts but they haven’t provided a solution: