On Undo Tweaks, revert ShutUp10 configurations

- The other scripts remain the same
main
Plínio Larrubia 2 years ago committed by Plínio Larrubia
parent c48aab986b
commit 8f0d63c80e
No known key found for this signature in database
GPG Key ID: 057B0A87CB137C69

@ -462,6 +462,7 @@ function Show-GUI() {
$UndoTweaks.Add_Click( {
$Global:Revert = $true
$Scripts = @(
"silent-debloat-softwares.ps1",
"optimize-task-scheduler.ps1",
"optimize-services.ps1",
"optimize-privacy.ps1",

@ -4,24 +4,42 @@ Import-Module -DisableNameChecking $PSScriptRoot\..\lib\"title-templates.psm1"
# Adapted from this ChrisTitus script: https://github.com/ChrisTitusTech/win10script
function Use-DebloatSoftware() {
$AdwCleanerDl = "https://downloads.malwarebytes.com/file/adwcleaner"
$AdwCleanerOutput = Request-FileDownload -FileURI $AdwCleanerDl -OutputFile "adwcleaner.exe"
Write-Status -Types "+" -Status "Running MalwareBytes AdwCleaner scanner..."
Start-Process -FilePath $AdwCleanerOutput -ArgumentList "/eula", "/clean", "/noreboot" -Wait
Remove-Item $AdwCleanerOutput -Force
[CmdletBinding()]
param (
[Switch] $Revert
)
If (!$Revert) {
$AdwCleanerDl = "https://downloads.malwarebytes.com/file/adwcleaner"
$AdwCleanerOutput = Request-FileDownload -FileURI $AdwCleanerDl -OutputFile "adwcleaner.exe"
Write-Status -Types "+" -Status "Running MalwareBytes AdwCleaner scanner..."
Start-Process -FilePath $AdwCleanerOutput -ArgumentList "/eula", "/clean", "/noreboot" -Wait
Remove-Item $AdwCleanerOutput -Force
}
$ShutUpDl = "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe"
$ShutUpOutput = Request-FileDownload -FileURI $ShutUpDl -OutputFolder "ShutUp10" -OutputFile "OOSU10.exe"
$ShutUpFolder = "$PSScriptRoot\..\tmp\ShutUp10"
Push-Location -Path $ShutUpFolder
Write-Status -Types "+" -Status "Running ShutUp10 and applying Recommended settings..."
Start-Process -FilePath $ShutUpOutput -ArgumentList "ooshutup10.cfg", "/quiet" -Wait # Wait until the process closes #
Remove-Item "$ShutUpOutput" -Force # Leave no traces
If ($Revert) {
Write-Status -Types "*" -Status "Running ShutUp10 and REVERTING to default settings..."
Start-Process -FilePath $ShutUpOutput -ArgumentList "ooshutup10-default.cfg", "/quiet" -Wait # Wait until the process closes #
} Else {
Write-Status -Types "+" -Status "Running ShutUp10 and applying Recommended settings..."
Start-Process -FilePath $ShutUpOutput -ArgumentList "ooshutup10.cfg", "/quiet" -Wait # Wait until the process closes #
}
Remove-Item "$ShutUpOutput" -Force # Leave no extra files
Pop-Location
}
function Main() {
Use-DebloatSoftware # [AUTOMATED] ShutUp10 with recommended configs and AdwCleaner for Adware/Virus Scanning.
If (!$Revert) {
Use-DebloatSoftware # [AUTOMATED] ShutUp10 with recommended configs and AdwCleaner for Adware/Virus Scanning.
} Else {
Use-DebloatSoftware -Revert
}
}
Main

@ -0,0 +1,189 @@
############################################################################
# This file was created with O&O ShutUp10++ V1.9.1431
# and can be imported onto another computer.
#
# Download the application at https://www.oo-software.com/shutup10
# You can then import the file from within the program.
#
# Alternatively you can import it automatically over a command line.
# Simply use the following parameter:
# OOSU10.exe <path to file>
#
# Selecting the Option /quiet ends the app right after the import and the
# user does not get any feedback about the import.
#
# We are always happy to answer any questions you may have!
# © 2015-2022 O&O Software GmbH, Berlin. All rights reserved.
# https://www.oo-software.com/
############################################################################
P001 -
P002 -
P003 -
P004 -
P005 -
P006 -
P008 -
P026 -
P027 +
P028 +
P064 -
P065 -
P066 -
P067 -
P070 -
P069 -
P009 -
P010 -
P015 -
P068 -
P016 -
A001 +
A002 +
A003 +
A004 +
A006 +
A005 +
P007 -
P036 -
P025 -
P033 -
P023 -
P056 -
P057 -
P012 -
P034 -
P013 -
P035 -
P062 -
P063 -
P081 -
P047 -
P019 -
P048 -
P049 -
P020 -
P037 -
P011 -
P038 -
P050 -
P051 -
P018 -
P039 -
P021 -
P040 -
P022 -
P041 -
P014 -
P042 -
P052 -
P053 -
P054 -
P055 -
P029 -
P043 -
P030 -
P044 -
P031 -
P045 -
P032 -
P046 -
P058 -
P059 -
P060 -
P061 -
P024 -
S001 -
S002 -
S003 -
S008 -
E101 -
E115 -
E118 -
E107 -
E111 -
E112 -
E109 -
E121 -
E103 -
E123 -
E124 -
E119 -
E120 -
E122 -
E106 -
E001 -
E002 -
E003 -
E008 -
E007 -
E010 -
E011 -
E012 -
E009 -
E004 -
E005 -
E013 -
E014 -
E006 -
Y001 -
Y002 -
Y003 -
Y004 -
Y005 -
Y006 -
Y007 -
C012 -
C002 -
C013 -
C007 -
C008 -
C009 -
C010 -
C011 -
C014 -
L001 -
L003 -
L004 -
L005 -
U001 -
U004 -
U005 -
U006 -
U007 -
W001 -
W011 -
W004 -
W005 -
W010 -
W009 -
P017 -
W006 -
W008 -
M006 -
M011 -
M010 -
O003 -
O001 -
S012 -
S013 -
S014 -
K001 -
K002 -
K005 -
M022 -
M001 -
M004 -
M005 -
M003 -
M012 -
M013 -
M014 -
M015 -
M016 -
M017 -
M018 -
M019 -
M020 -
M023 -
N001 -
Loading…
Cancel
Save