safeguard-ps
safeguard-ps copied to clipboard
Issue with PowerShell Module in PowerShell 7.5
Hi,
since the release of PowerShell 7.5, the PowerShell modules no longer work. We encounter the following error:
Add-Type: (7,36): error SYSLIB0014: 'ServicePointManager' is obsolete: 'WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead. Settings on ServicePointManager no longer affect SslStream or HttpClient.' (https://aka.ms/dotnet-warnings/SYSLIB0014) public static void SetCallback() { System.Net.ServicePointManager.ServerCertificateValidationCallback = ValidationCallback; }
Module Version is 7.5.146913
Could you provide guidance on how to resolve this issue?
Best regards, Stefan
@sthayduk A fix for this issue is in testing.