PowerShell Universal cmdlets return a 404 over HTTPS

PowerShell Universal cmdlets return a 404 over HTTPS

Version: 1.4
PowerShell Version: Windows PowerShell 5.1
Problem
When issue commands against the PowerShell Universal Management API (such as Get-UAJob, Get-UAScript, etc), the cmdlet will return a 404 error. This can happen when running scripts within PowerShell Universal (APIs, scripts, dashboards) or outside of PowerShell Universal. 
Root Cause
The cause of this issue is misconfigured TLS settings for the PowerShell process. You will not see this issue with PowerShell 6 or 7 but will present itself in Windows PowerShell. 
Workaround
The workaround for this issue is to set the TLS setting to 1.2 for the Windows PowerShell process. You can do so with the following snippet.
  1. [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

    • Related Articles

    • PowerShell Universal Service crashes on startup after an upgrade to 1.4.6

      Version: PowerShell Universal 1.4.6 Issue The PowerShell Universal service will crash with the following error in Event Viewer.  Application: Universal.Server.exe CoreCLR Version: 4.700.19.56402 .NET Core Version: 3.1.0 Description: The process was ...
    • KB0079 - gRPC Issues when using PowerShell Universal v5 Cmdlets

      Scope Users running PowerShell Universal v5 or later that are attempting to call cmdlets that interact with PowerShell Universal management APIs. Problem Various errors from PowerShell Universal cmdlets referring to gRPC. Root Cause The use of gRPC, ...
    • KB0045 - The requested certificate could not be found

      Problem When specifying a certificate for PowerShell Universal in appsettings.json, an error may occur stating that the certificate could not be found. 2023-09-06 07:52:06.376 -05:00 [FTL] Fatal error starting PowerShell Universal. ...
    • KB0048 - License is about to expire

      Scope This article only applies to PowerShell Universal instances with a perpetual license (monthly licenses excluded). See https://ironmansoftware.com/license/info for more information about PowerShell Universal licensing. Problem Your PowerShell ...
    • KB0035 - How to add the Calendar and other components

      Purpose The purpose of this article is to demonstrate how to install and use the Calendar component (module) Background There is a growing list of add-on components (modules) for PowerShell Universal at ...