From 21b1002b6e4c5b1b4f8a41184440569076606f6e Mon Sep 17 00:00:00 2001 From: Nicolas MAUBERT Date: Thu, 14 Apr 2022 18:12:02 +0200 Subject: [PATCH] add_SecurityProtocol --- agent/Windows/lastpublic.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/agent/Windows/lastpublic.ps1 b/agent/Windows/lastpublic.ps1 index 2b2782c..7ad5e1f 100644 --- a/agent/Windows/lastpublic.ps1 +++ b/agent/Windows/lastpublic.ps1 @@ -1,6 +1,7 @@ # Plugin "Get IP" OCSInventory # Author: Valentin COSSE & Valentin DEVILLE +[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 $myjson = Invoke-RestMethod -Uri https://www.ipinfo.io/json