From 988d8adab02449c3ff112a27f5f0b4fe707b8122 Mon Sep 17 00:00:00 2001 From: simeononsecurity <4913771+simeononsecurity@users.noreply.github.com> Date: Fri, 31 Dec 2021 00:05:03 +0000 Subject: [PATCH] Remove Install HVEC Video Extention --- windows10.ps1 | 61 --------------------------------------------------- 1 file changed, 61 deletions(-) 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 '