diff --git a/Sophia/Windows 11/Module/Sophia.psm1 b/Sophia/Windows 11/Module/Sophia.psm1 index d36f7904..341d4dbb 100644 --- a/Sophia/Windows 11/Module/Sophia.psm1 +++ b/Sophia/Windows 11/Module/Sophia.psm1 @@ -157,7 +157,7 @@ function Checkings [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/sophia_script_versions.json - $LatestRelease = (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/sophia_script_versions.json" -UseBasicParsing | ConvertFrom-Json).Sophia_Script_Windows_11_PowerShell_5_1 + $LatestRelease = (Invoke-RestMethod -Uri "https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/sophia_script_versions.json" -UseBasicParsing).Sophia_Script_Windows_11_PowerShell_5_1 $CurrentRelease = (Get-Module -Name Sophia).Version.ToString() switch ([System.Version]$LatestRelease -gt [System.Version]$CurrentRelease) {