From 4c990f4a013690102cac9f7dd5937cd694550662 Mon Sep 17 00:00:00 2001 From: simeononsecurity <4913771+simeononsecurity@users.noreply.github.com> Date: Wed, 12 May 2021 02:18:53 -0500 Subject: [PATCH] Update windows10.ps1 --- windows10.ps1 | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/windows10.ps1 b/windows10.ps1 index 75ba5dc..741afc0 100644 --- a/windows10.ps1 +++ b/windows10.ps1 @@ -503,14 +503,4 @@ Start-Job -Name "Configuring Windows - Optimizations, Debloating, and Hardening" } } } - - #Install option for .cab files - if (-not (Test-Path -Path "Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs\Command")) { - New-Item -Path "Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs\Command" -Force - } - $Value = "{ 0 }" -f "cmd /c DISM.exe /Online /Add-Package /PackagePath:`"%1`" /NoRestart '&' pause" - New-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs\Command" -Name "(default)" -PropertyType "String" -Value "$Value" -Force - New-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs" -Name "MUIVerb" -PropertyType "String" -Value "@shell32.dll, -10210" -Force - New-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs" -Name "HasLUAShield" -PropertyType "String" -Value "" -Force - } \ No newline at end of file