mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-05 04:33:53 -05:00
Compare commits
6 Commits
24.08.16
...
5b897911f6
Author | SHA1 | Date | |
---|---|---|---|
5b897911f6 | |||
7f9ddb6d77 | |||
3c58a46b34 | |||
3f39c61cb0 | |||
da75194381 | |||
01bdba2fbb |
244
config/ooshutup10_factory.cfg
Normal file
244
config/ooshutup10_factory.cfg
Normal file
@ -0,0 +1,244 @@
|
|||||||
|
############################################################################
|
||||||
|
# This file was created with O&O ShutUp10++ V1.9.1436
|
||||||
|
# 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-2023 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 -
|
||||||
|
P071 -
|
||||||
|
P072 -
|
||||||
|
P073 -
|
||||||
|
P074 -
|
||||||
|
P075 -
|
||||||
|
P076 -
|
||||||
|
P077 -
|
||||||
|
P078 -
|
||||||
|
P079 -
|
||||||
|
P080 -
|
||||||
|
P024 -
|
||||||
|
S001 -
|
||||||
|
S002 -
|
||||||
|
S003 -
|
||||||
|
S008 -
|
||||||
|
E101 -
|
||||||
|
E201 -
|
||||||
|
E115 -
|
||||||
|
E215 -
|
||||||
|
E118 -
|
||||||
|
E218 -
|
||||||
|
E107 -
|
||||||
|
E207 -
|
||||||
|
E111 -
|
||||||
|
E211 -
|
||||||
|
E112 -
|
||||||
|
E212 -
|
||||||
|
E109 -
|
||||||
|
E209 -
|
||||||
|
E121 -
|
||||||
|
E221 -
|
||||||
|
E103 -
|
||||||
|
E203 -
|
||||||
|
E123 -
|
||||||
|
E223 -
|
||||||
|
E124 -
|
||||||
|
E224 -
|
||||||
|
E128 -
|
||||||
|
E228 -
|
||||||
|
E119 -
|
||||||
|
E219 -
|
||||||
|
E120 -
|
||||||
|
E220 -
|
||||||
|
E122 -
|
||||||
|
E222 -
|
||||||
|
E125 -
|
||||||
|
E225 -
|
||||||
|
E126 -
|
||||||
|
E226 -
|
||||||
|
E106 -
|
||||||
|
E206 -
|
||||||
|
E127 -
|
||||||
|
E227 -
|
||||||
|
E001 -
|
||||||
|
E002 -
|
||||||
|
E003 -
|
||||||
|
E008 -
|
||||||
|
E007 -
|
||||||
|
E010 -
|
||||||
|
E011 +
|
||||||
|
E012 +
|
||||||
|
E009 -
|
||||||
|
E004 -
|
||||||
|
E005 -
|
||||||
|
E013 -
|
||||||
|
E014 -
|
||||||
|
E006 -
|
||||||
|
F002 -
|
||||||
|
F014 -
|
||||||
|
F015 -
|
||||||
|
F016 -
|
||||||
|
F001 -
|
||||||
|
F003 -
|
||||||
|
F004 -
|
||||||
|
F005 -
|
||||||
|
F007 -
|
||||||
|
F008 -
|
||||||
|
F009 -
|
||||||
|
F006 -
|
||||||
|
F010 -
|
||||||
|
F011 -
|
||||||
|
F012 -
|
||||||
|
F013 -
|
||||||
|
Y001 -
|
||||||
|
Y002 -
|
||||||
|
Y003 -
|
||||||
|
Y004 -
|
||||||
|
Y005 -
|
||||||
|
Y006 -
|
||||||
|
Y007 -
|
||||||
|
C012 -
|
||||||
|
C002 -
|
||||||
|
C013 -
|
||||||
|
C007 -
|
||||||
|
C008 -
|
||||||
|
C009 -
|
||||||
|
C010 -
|
||||||
|
C011 -
|
||||||
|
C014 -
|
||||||
|
C015 -
|
||||||
|
C101 -
|
||||||
|
C201 -
|
||||||
|
C102 -
|
||||||
|
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 -
|
||||||
|
M025 -
|
||||||
|
M003 -
|
||||||
|
M015 -
|
||||||
|
M016 -
|
||||||
|
M017 -
|
||||||
|
M018 -
|
||||||
|
M019 -
|
||||||
|
M020 -
|
||||||
|
M021 -
|
||||||
|
M022 -
|
||||||
|
M001 -
|
||||||
|
M004 -
|
||||||
|
M005 -
|
||||||
|
M024 -
|
||||||
|
M012 -
|
||||||
|
M013 -
|
||||||
|
M014 -
|
||||||
|
N001 -
|
@ -1,222 +1,244 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# This file was created with O&O ShutUp10++ V1.9.1435
|
# This file was created with O&O ShutUp10++ V1.9.1436
|
||||||
# and can be imported onto another computer.
|
# and can be imported onto another computer.
|
||||||
#
|
#
|
||||||
# Download the application at https://www.oo-software.com/shutup10
|
# Download the application at https://www.oo-software.com/shutup10
|
||||||
# You can then import the file from within the program.
|
# You can then import the file from within the program.
|
||||||
#
|
#
|
||||||
# Alternatively you can import it automatically over a command line.
|
# Alternatively you can import it automatically over a command line.
|
||||||
# Simply use the following parameter:
|
# Simply use the following parameter:
|
||||||
# OOSU10.exe <path to file>
|
# OOSU10.exe <path to file>
|
||||||
#
|
#
|
||||||
# Selecting the Option /quiet ends the app right after the import and the
|
# Selecting the Option /quiet ends the app right after the import and the
|
||||||
# user does not get any feedback about the import.
|
# user does not get any feedback about the import.
|
||||||
#
|
#
|
||||||
# We are always happy to answer any questions you may have!
|
# We are always happy to answer any questions you may have!
|
||||||
# © 2015-2023 O&O Software GmbH, Berlin. All rights reserved.
|
# © 2015-2023 O&O Software GmbH, Berlin. All rights reserved.
|
||||||
# https://www.oo-software.com/
|
# https://www.oo-software.com/
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
P001 +
|
P001 +
|
||||||
P002 +
|
P002 +
|
||||||
P003 +
|
P003 +
|
||||||
P004 +
|
P004 +
|
||||||
P005 +
|
P005 +
|
||||||
P006 +
|
P006 +
|
||||||
P008 +
|
P008 +
|
||||||
P026 +
|
P026 +
|
||||||
P027 +
|
P027 +
|
||||||
P028 +
|
P028 +
|
||||||
P064 +
|
P064 +
|
||||||
P065 +
|
P065 +
|
||||||
P066 +
|
P066 +
|
||||||
P067 +
|
P067 +
|
||||||
P070 +
|
P070 +
|
||||||
P069 +
|
P069 +
|
||||||
P009 -
|
P009 -
|
||||||
P010 -
|
P010 -
|
||||||
P015 +
|
P015 -
|
||||||
P068 -
|
P068 -
|
||||||
P016 -
|
P016 -
|
||||||
A001 +
|
A001 +
|
||||||
A002 +
|
A002 +
|
||||||
A003 +
|
A003 +
|
||||||
A004 -
|
A004 +
|
||||||
A006 -
|
A006 +
|
||||||
A005 +
|
A005 +
|
||||||
P007 +
|
P007 +
|
||||||
P036 +
|
P036 +
|
||||||
P025 +
|
P025 +
|
||||||
P033 +
|
P033 +
|
||||||
P023 +
|
P023 +
|
||||||
P056 +
|
P056 -
|
||||||
P057 -
|
P057 -
|
||||||
P012 -
|
P012 -
|
||||||
P034 -
|
P034 -
|
||||||
P013 -
|
P013 -
|
||||||
P035 -
|
P035 -
|
||||||
P062 -
|
P062 -
|
||||||
P063 -
|
P063 -
|
||||||
P081 -
|
P081 -
|
||||||
P047 -
|
P047 -
|
||||||
P019 -
|
P019 -
|
||||||
P048 -
|
P048 -
|
||||||
P049 -
|
P049 -
|
||||||
P020 -
|
P020 -
|
||||||
P037 -
|
P037 -
|
||||||
P011 -
|
P011 -
|
||||||
P038 -
|
P038 -
|
||||||
P050 -
|
P050 -
|
||||||
P051 -
|
P051 -
|
||||||
P018 -
|
P018 -
|
||||||
P039 -
|
P039 -
|
||||||
P021 -
|
P021 -
|
||||||
P040 -
|
P040 -
|
||||||
P022 -
|
P022 -
|
||||||
P041 -
|
P041 -
|
||||||
P014 -
|
P014 -
|
||||||
P042 -
|
P042 -
|
||||||
P052 -
|
P052 -
|
||||||
P053 -
|
P053 -
|
||||||
P054 -
|
P054 -
|
||||||
P055 -
|
P055 -
|
||||||
P029 -
|
P029 -
|
||||||
P043 -
|
P043 -
|
||||||
P030 -
|
P030 -
|
||||||
P044 -
|
P044 -
|
||||||
P031 -
|
P031 -
|
||||||
P045 -
|
P045 -
|
||||||
P032 -
|
P032 -
|
||||||
P046 -
|
P046 -
|
||||||
P058 -
|
P058 -
|
||||||
P059 -
|
P059 -
|
||||||
P060 -
|
P060 -
|
||||||
P061 -
|
P061 -
|
||||||
P071 -
|
P071 -
|
||||||
P072 -
|
P072 -
|
||||||
P073 -
|
P073 -
|
||||||
P074 -
|
P074 -
|
||||||
P075 -
|
P075 -
|
||||||
P076 -
|
P076 -
|
||||||
P077 -
|
P077 -
|
||||||
P078 -
|
P078 -
|
||||||
P079 -
|
P079 -
|
||||||
P080 -
|
P080 -
|
||||||
P024 -
|
P024 -
|
||||||
S001 +
|
S001 +
|
||||||
S002 +
|
S002 +
|
||||||
S003 +
|
S003 +
|
||||||
S008 -
|
S008 -
|
||||||
E101 +
|
E101 +
|
||||||
E201 -
|
E201 +
|
||||||
E115 +
|
E115 +
|
||||||
E215 -
|
E215 +
|
||||||
E118 +
|
E118 +
|
||||||
E218 -
|
E218 +
|
||||||
E107 +
|
E107 +
|
||||||
E207 -
|
E207 +
|
||||||
E111 +
|
E111 +
|
||||||
E211 -
|
E211 +
|
||||||
E112 +
|
E112 +
|
||||||
E212 +
|
E212 +
|
||||||
E109 +
|
E109 +
|
||||||
E209 +
|
E209 +
|
||||||
E121 +
|
E121 +
|
||||||
E221 -
|
E221 +
|
||||||
E103 -
|
E103 +
|
||||||
E203 -
|
E203 +
|
||||||
E123 -
|
E123 +
|
||||||
E223 +
|
E223 +
|
||||||
E124 -
|
E124 +
|
||||||
E224 -
|
E224 +
|
||||||
E128 -
|
E128 +
|
||||||
E228 -
|
E228 +
|
||||||
E119 -
|
E119 -
|
||||||
E219 -
|
E219 -
|
||||||
E120 -
|
E120 -
|
||||||
E220 -
|
E220 -
|
||||||
E122 -
|
E122 -
|
||||||
E222 -
|
E222 -
|
||||||
E125 -
|
E125 -
|
||||||
E225 -
|
E225 -
|
||||||
E126 -
|
E126 -
|
||||||
E226 -
|
E226 -
|
||||||
E106 -
|
E106 -
|
||||||
E206 -
|
E206 -
|
||||||
E127 -
|
E127 -
|
||||||
E227 -
|
E227 -
|
||||||
E001 +
|
E001 +
|
||||||
E002 +
|
E002 +
|
||||||
E003 -
|
E003 +
|
||||||
E008 +
|
E008 +
|
||||||
E007 +
|
E007 +
|
||||||
E010 -
|
E010 +
|
||||||
E011 +
|
E011 +
|
||||||
E012 +
|
E012 +
|
||||||
E009 -
|
E009 -
|
||||||
E004 -
|
E004 -
|
||||||
E005 -
|
E005 -
|
||||||
E013 -
|
E013 -
|
||||||
E014 -
|
E014 -
|
||||||
E006 -
|
E006 -
|
||||||
Y001 +
|
F002 +
|
||||||
Y002 +
|
F014 +
|
||||||
Y003 +
|
F015 +
|
||||||
Y004 +
|
F016 +
|
||||||
Y005 +
|
F001 +
|
||||||
Y006 +
|
F003 +
|
||||||
Y007 +
|
F004 +
|
||||||
C012 +
|
F005 +
|
||||||
C002 +
|
F007 +
|
||||||
C013 +
|
F008 +
|
||||||
C007 +
|
F009 +
|
||||||
C008 +
|
F006 -
|
||||||
C009 +
|
F010 -
|
||||||
C010 +
|
F011 -
|
||||||
C011 +
|
F012 -
|
||||||
C014 +
|
F013 -
|
||||||
L001 +
|
Y001 +
|
||||||
L003 +
|
Y002 +
|
||||||
L004 -
|
Y003 +
|
||||||
L005 -
|
Y004 +
|
||||||
U001 +
|
Y005 +
|
||||||
U004 +
|
Y006 +
|
||||||
U005 +
|
Y007 +
|
||||||
U006 -
|
C012 +
|
||||||
U007 +
|
C002 +
|
||||||
W001 +
|
C013 +
|
||||||
W011 +
|
C007 +
|
||||||
W004 -
|
C008 +
|
||||||
W005 -
|
C009 +
|
||||||
W010 -
|
C010 +
|
||||||
W009 -
|
C011 +
|
||||||
P017 +
|
C014 +
|
||||||
W006 -
|
C015 +
|
||||||
W008 -
|
C101 +
|
||||||
M006 +
|
C201 +
|
||||||
M011 -
|
C102 +
|
||||||
M010 +
|
L001 +
|
||||||
O003 -
|
L003 +
|
||||||
O001 -
|
L004 -
|
||||||
S012 -
|
L005 -
|
||||||
S013 -
|
U001 +
|
||||||
S014 -
|
U004 +
|
||||||
K001 +
|
U005 +
|
||||||
K002 +
|
U006 +
|
||||||
K005 +
|
U007 +
|
||||||
M022 +
|
W001 +
|
||||||
M001 +
|
W011 +
|
||||||
M004 +
|
W004 -
|
||||||
M005 +
|
W005 -
|
||||||
M024 -
|
W010 -
|
||||||
M003 -
|
W009 -
|
||||||
M012 -
|
P017 -
|
||||||
M013 -
|
W006 -
|
||||||
M014 -
|
W008 -
|
||||||
M015 +
|
M006 +
|
||||||
M017 +
|
M011 -
|
||||||
M018 +
|
M010 -
|
||||||
M019 -
|
O003 -
|
||||||
M020 +
|
O001 -
|
||||||
M021 -
|
S012 -
|
||||||
N001 -
|
S013 -
|
||||||
|
S014 -
|
||||||
|
K001 +
|
||||||
|
K002 +
|
||||||
|
K005 +
|
||||||
|
M025 +
|
||||||
|
M003 -
|
||||||
|
M015 -
|
||||||
|
M016 -
|
||||||
|
M017 -
|
||||||
|
M018 -
|
||||||
|
M019 -
|
||||||
|
M020 -
|
||||||
|
M021 -
|
||||||
|
M022 +
|
||||||
|
M001 +
|
||||||
|
M004 +
|
||||||
|
M005 +
|
||||||
|
M024 +
|
||||||
|
M012 -
|
||||||
|
M013 -
|
||||||
|
M014 -
|
||||||
|
N001 -
|
@ -2234,19 +2234,18 @@
|
|||||||
"
|
"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"WPFTweaksOO": {
|
"WPFTweaksOOSU": {
|
||||||
"Content": "Run OO Shutup",
|
"Content": "Run OO Shutup",
|
||||||
"Description": "Runs OO Shutup from https://www.oo-software.com/en/shutup10",
|
"Description": "Runs OO Shutup and applies the recommended Tweaks. https://www.oo-software.com/en/shutup10",
|
||||||
"category": "Essential Tweaks",
|
"category": "Essential Tweaks",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a002_",
|
"Order": "a002_",
|
||||||
"Content": "Run OO Shutup",
|
"ToolTip": "Runs OO Shutup and applies the recommended Tweaks https://www.oo-software.com/en/shutup10",
|
||||||
"ToolTip": "Runs OO Shutup from https://www.oo-software.com/en/shutup10",
|
|
||||||
"InvokeScript": [
|
"InvokeScript": [
|
||||||
"curl.exe -s \"https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/ooshutup10_winutil_settings.cfg\" -o $ENV:temp\\ooshutup10.cfg
|
"Invoke-WPFOOSU -action \"recommended\""
|
||||||
curl.exe -s \"https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe\" -o $ENV:temp\\OOSU10.exe
|
],
|
||||||
Start-Process $ENV:temp\\OOSU10.exe -ArgumentList \"\"\"$ENV:temp\\ooshutup10.cfg\"\" /quiet\"
|
"UndoScript": [
|
||||||
"
|
"Invoke-WPFOOSU -action \"undo\""
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"WPFTweaksStorage": {
|
"WPFTweaksStorage": {
|
||||||
@ -2613,6 +2612,13 @@
|
|||||||
"Order": "a067_",
|
"Order": "a067_",
|
||||||
"Type": "Toggle"
|
"Type": "Toggle"
|
||||||
},
|
},
|
||||||
|
"WPFOOSUbutton": {
|
||||||
|
"Content": "Customize OO Shutup Tweaks",
|
||||||
|
"category": "z__Advanced Tweaks - CAUTION",
|
||||||
|
"panel": "1",
|
||||||
|
"Order": "a039_",
|
||||||
|
"Type": "220"
|
||||||
|
},
|
||||||
"WPFchangedns": {
|
"WPFchangedns": {
|
||||||
"Content": "DNS",
|
"Content": "DNS",
|
||||||
"category": "z__Advanced Tweaks - CAUTION",
|
"category": "z__Advanced Tweaks - CAUTION",
|
||||||
|
@ -27,6 +27,7 @@ function Invoke-WPFButton {
|
|||||||
"WPFclear" {Invoke-WPFPresets -preset $null -imported $true}
|
"WPFclear" {Invoke-WPFPresets -preset $null -imported $true}
|
||||||
"WPFclearWinget" {Invoke-WPFPresets -preset $null -imported $true -CheckBox "WPFInstall"}
|
"WPFclearWinget" {Invoke-WPFPresets -preset $null -imported $true -CheckBox "WPFInstall"}
|
||||||
"WPFtweaksbutton" {Invoke-WPFtweaksbutton}
|
"WPFtweaksbutton" {Invoke-WPFtweaksbutton}
|
||||||
|
"WPFOOSUbutton" {Invoke-WPFOOSU -action "customize"}
|
||||||
"WPFAddUltPerf" {Invoke-WPFUltimatePerformance -State "Enabled"}
|
"WPFAddUltPerf" {Invoke-WPFUltimatePerformance -State "Enabled"}
|
||||||
"WPFRemoveUltPerf" {Invoke-WPFUltimatePerformance -State "Disabled"}
|
"WPFRemoveUltPerf" {Invoke-WPFUltimatePerformance -State "Disabled"}
|
||||||
"WPFundoall" {Invoke-WPFundoall}
|
"WPFundoall" {Invoke-WPFundoall}
|
||||||
|
43
functions/public/Invoke-WPFOOSU
Normal file
43
functions/public/Invoke-WPFOOSU
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
function Invoke-WPFOOSU {
|
||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Downloads and runs OO Shutup 10 with or without config files
|
||||||
|
.PARAMETER action
|
||||||
|
Specifies how OOSU should be started
|
||||||
|
customize: Opens the OOSU GUI
|
||||||
|
recommended: Loads and applies the recommended OOSU policies silently
|
||||||
|
undo: Resets all policies to factory silently
|
||||||
|
#>
|
||||||
|
|
||||||
|
param (
|
||||||
|
[ValidateSet("customize", "recommended", "undo")]
|
||||||
|
[string]$action
|
||||||
|
)
|
||||||
|
|
||||||
|
$OOSU_filepath = "$ENV:temp\OOSU10.exe"
|
||||||
|
|
||||||
|
$Initial_ProgressPreference = $ProgressPreference
|
||||||
|
$ProgressPreference = "SilentlyContinue" # Disables the Progress Bar to drasticly speed up Invoke-WebRequest
|
||||||
|
Invoke-WebRequest -Uri "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -OutFile $OOSU_filepath
|
||||||
|
|
||||||
|
switch ($action)
|
||||||
|
{
|
||||||
|
"customize"{
|
||||||
|
Write-Host "Starting OO Shutup 10 ..."
|
||||||
|
Start-Process $OOSU_filepath
|
||||||
|
}
|
||||||
|
"recommended"{
|
||||||
|
$oosu_config = "$ENV:temp\ooshutup10_recommended.cfg"
|
||||||
|
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/config/recommended_ooshutup10.cfg" -OutFile $oosu_config
|
||||||
|
Write-Host "Applying recommended OO Shutup 10 Policies"
|
||||||
|
Start-Process $OOSU_filepath -ArgumentList "$oosu_config /quiet" -Wait
|
||||||
|
}
|
||||||
|
"undo"{
|
||||||
|
$oosu_config = "$ENV:temp\ooshutup10_factory.cfg"
|
||||||
|
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/config/factory_ooshutup10.cfg" -OutFile $oosu_config
|
||||||
|
Write-Host "Resetting all OO Shutup 10 Policies"
|
||||||
|
Start-Process $OOSU_filepath -ArgumentList "$oosu_config /quiet" -Wait
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$ProgressPreference = $Initial_ProgressPreference
|
||||||
|
}
|
Reference in New Issue
Block a user