diff --git a/windows10.ps1 b/windows10.ps1 index 6143d77..33372ad 100644 --- a/windows10.ps1 +++ b/windows10.ps1 @@ -444,67 +444,6 @@ Start-Job -Name "Configuring Windows - Optimizations, Debloating, and Hardening" #Enable Restartable Apps New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name "RestartApps" -Value "1" -Force - #Install HVEC Video Extention - # Check whether the extension is already installed - if (-not (Get-AppxPackage -Name "Microsoft.HEVCVideoExtension") -and (Get-AppxPackage -Name "Microsoft.Windows.Photos")) { - try { - # Check the internet connection - if ((Invoke-WebRequest -Uri https://www.google.com -UseBasicParsing -DisableKeepAlive -Method Head).StatusDescription) { - try { - # Check whether the https://store.rg-adguard.net site is alive - if ((Invoke-WebRequest -Uri https://store.rg-adguard.net/api/GetFiles -UseBasicParsing -DisableKeepAlive -Method Head).StatusDescription) { - $API = "https://store.rg-adguard.net/api/GetFiles" - # HEVC Video Extensions from Device Manufacturer - $ProductURL = "https://www.microsoft.com/store/productId/9n4wgh0z6vhq" - - $Body = @{ - type = "url" - url = $ProductURL - ring = "Retail" - lang = "en-US" - } - $Raw = Invoke-RestMethod -Method Post -Uri $API -ContentType 'application/x-www-form-urlencoded' -Body $Body - - # Parsing the page - $Raw | Select-String -Pattern '