From 96d3208fe488e351556c04fe6638d456d17161b6 Mon Sep 17 00:00:00 2001 From: Martin Wiethan <47688561+Marterich@users.noreply.github.com> Date: Tue, 4 Jun 2024 06:18:17 +0200 Subject: [PATCH] Update oosu10 config files and ad missing fileextension (#1980) Co-authored-by: Chris Titus --- config/ooshutup10_factory.cfg | 17 ------------- config/ooshutup10_recommended.cfg | 37 ++++++++--------------------- functions/public/Invoke-WPFOOSU.ps1 | 6 +++-- 3 files changed, 14 insertions(+), 46 deletions(-) diff --git a/config/ooshutup10_factory.cfg b/config/ooshutup10_factory.cfg index aba3cbe0..1ae2ecab 100644 --- a/config/ooshutup10_factory.cfg +++ b/config/ooshutup10_factory.cfg @@ -159,22 +159,6 @@ E005 - E013 - E014 - E006 - -F002 - -F014 - -F015 - -F016 - -F001 - -F003 - -F004 - -F005 - -F007 - -F008 - -F009 - -F006 - -F010 - -F011 - -F012 - -F013 - Y001 - Y002 - Y003 - @@ -224,7 +208,6 @@ S014 - K001 - K002 - K005 - -M025 - M003 - M015 - M016 - diff --git a/config/ooshutup10_recommended.cfg b/config/ooshutup10_recommended.cfg index 0993f4d9..0149c649 100644 --- a/config/ooshutup10_recommended.cfg +++ b/config/ooshutup10_recommended.cfg @@ -34,8 +34,8 @@ P067 + P070 + P069 + P009 - -P010 - -P015 - +P010 + +P015 + P068 - P016 - A001 + @@ -49,7 +49,7 @@ P036 + P025 + P033 + P023 + -P056 - +P056 + P057 - P012 - P034 - @@ -102,7 +102,7 @@ P077 - P078 - P079 - P080 - -P024 - +P024 + S001 + S002 + S003 + @@ -159,22 +159,6 @@ E005 - E013 - E014 - E006 - -F002 + -F014 + -F015 + -F016 + -F001 + -F003 + -F004 + -F005 + -F007 + -F008 + -F009 + -F006 - -F010 - -F011 - -F012 - -F013 - Y001 + Y002 + Y003 + @@ -210,12 +194,12 @@ W004 - W005 - W010 - W009 - -P017 - +P017 + W006 - W008 - M006 + M011 - -M010 - +M010 + O003 - O001 - S012 - @@ -224,15 +208,14 @@ S014 - K001 + K002 + K005 + -M025 + M003 - -M015 - +M015 + M016 - M017 - -M018 - +M018 + M019 - -M020 - -M021 - +M020 + +M021 + M022 + M001 + M004 + diff --git a/functions/public/Invoke-WPFOOSU.ps1 b/functions/public/Invoke-WPFOOSU.ps1 index d244acf2..d30ea3a8 100644 --- a/functions/public/Invoke-WPFOOSU.ps1 +++ b/functions/public/Invoke-WPFOOSU.ps1 @@ -27,12 +27,14 @@ function Invoke-WPFOOSU { Start-Process $OOSU_filepath } "recommended"{ - New-Item -Path $ENV:temp\ooshutup10_recommended.cfg -ItemType File -Value $sync.configs.ooshutup10_recommended -Force + $oosu_config = "$ENV:temp\ooshutup10_recommended.cfg" + Invoke-WebRequest -Uri "https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/config/ooshutup10_recommended.cfg" -OutFile $oosu_config Write-Host "Applying recommended OO Shutup 10 Policies" Start-Process $OOSU_filepath -ArgumentList "$oosu_config /quiet" -Wait } "undo"{ - New-Item -Path $ENV:temp\ooshutup10_factory.cfg -ItemType File -Value $sync.configs.ooshutup10_factory -Force + $oosu_config = "$ENV:temp\ooshutup10_factory.cfg" + Invoke-WebRequest -Uri "https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/config/ooshutup10_factory.cfg" -OutFile $oosu_config Write-Host "Resetting all OO Shutup 10 Policies" Start-Process $OOSU_filepath -ArgumentList "$oosu_config /quiet" -Wait }