· last year · Feb 25, 2024, 12:30 PM
1# $ErrorActionPreference = 'SilentlyContinue'
2# $wshell = New-Object -ComObject Wscript.Shell
3# $Button = [System.Windows.MessageBoxButton]::YesNoCancel
4# $ErrorIco = [System.Windows.MessageBoxImage]::Error
5# If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]'Administrator')) {
6# Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs
7# Exit
8# }
9
10
11
12If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]'Administrator')) {
13 $Prompt = [System.Windows.MessageBox]::Show($Ask, "Run as an Administrator or not?", $Button, $ErrorIco)
14 Switch ($Prompt) {
15 #This will debloat Windows 10
16 Yes {
17 Write-Host "You didn't run this script as an Administrator. This script will self elevate to run as an Administrator and continue."
18 Start-Process PowerShell.exe -ArgumentList ("-NoProfile -ExecutionPolicy Bypass -File `"{0}`"" -f $PSCommandPath) -Verb RunAs
19 Exit
20 }
21 No {
22 Break
23 }
24 }
25}
26
27Write-Host "Checking Chocolatey..."
28
29
30# Check if winget is installed
31if (Test-Path C:\ProgramData\chocolatey\choco.exe){
32 'Chocolatey Already Installed'
33}
34else{
35 # Installing winget from the Microsoft Store
36Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
37}
38
39[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')
40
41# Place xaml code from visual studio in here string (in the blank line between @ symbols)
42$input = @’
43<Window x:Name="my_app" x:Class="WpfApp1.MainWindow"
44 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
45 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
46 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
47 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
48 xmlns:local="clr-namespace:WpfApp1"
49 mc:Ignorable="d"
50 Title="My App and windows optimiser" Height="650" Width="560" WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
51 <TabControl Background="#FF2B00FF">
52 <TabItem Header="App instaler">
53 <Grid Background="#FF252525">
54 <Grid.RowDefinitions>
55 <RowDefinition Height="160*"/>
56 <RowDefinition Height="127*"/>
57 </Grid.RowDefinitions>
58 <Label Content="Mead by raad" HorizontalAlignment="Center" Margin="0,10,0,0" VerticalAlignment="Top" Background="Transparent" FontFamily="Bahnschrift Condensed" FontSize="18" Foreground="Red" Height="32" Width="90"/>
59 <Label Content="Chose app when you need to Install/Unistall" HorizontalAlignment="Left" Margin="75,26,0,0" VerticalAlignment="Top" FontSize="16" FontFamily="Segoe Print" Background="Transparent" Foreground="#FFE8D977" Height="38" Width="368"/>
60 <CheckBox x:Name="Chrome_CheckBox" Content="Chrome" HorizontalAlignment="Left" Margin="25,78,0,0" VerticalAlignment="Top" Foreground="White" IsChecked="False" FontSize="14" RenderTransformOrigin="1.041,0.566" Height="18" Width="132"/>
61 <CheckBox x:Name="Fierfox_CheckBox" Content="Fierfox" HorizontalAlignment="Left" Margin="25,101,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="132"/>
62 <CheckBox x:Name="Breave_CheckBox" Content="Breave" HorizontalAlignment="Left" Margin="25,124,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="132"/>
63 <CheckBox x:Name="Discord_CheckBox" Content="Discord" HorizontalAlignment="Left" Margin="25,147,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="132"/>
64 <CheckBox x:Name="ONLYOFFICE_CheckBox" Content="ONLYOFFICE" HorizontalAlignment="Left" Margin="25,170,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" RenderTransformOrigin="0.757,0.431" Height="18" Width="132"/>
65 <CheckBox x:Name="Everything_CheckBox" Content="Everything" HorizontalAlignment="Left" Margin="25,193,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="132"/>
66 <CheckBox x:Name="powershell_CheckBox" Content="Powershell" HorizontalAlignment="Left" Margin="25,216,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="132"/>
67 <CheckBox x:Name="Visual_Studio_Community22_CheckBox" Content="Visual Studio Com22" HorizontalAlignment="Left" Margin="25,262,0,0" VerticalAlignment="Top" Foreground="White" Height="18" Width="132" RenderTransformOrigin="0.573,0.978"/>
68 <CheckBox x:Name="Visual_Studio_Code_CheckBox" Content="Visual Studio Code" HorizontalAlignment="Left" Margin="25,239,0,0" VerticalAlignment="Top" Foreground="White" Height="18" Width="132"/>
69 <CheckBox x:Name="Steam_CheckBox" Content="Steam" HorizontalAlignment="Left" Margin="25,285,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="132"/>
70 <CheckBox x:Name="DS4Windows_CheckBox" Content="DS4Windows" HorizontalAlignment="Left" Margin="162,80,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="128"/>
71 <CheckBox x:Name="NET_4_8_CheckBox" Content=".NET 4.8" HorizontalAlignment="Left" Margin="295,80,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="107"/>
72 <CheckBox x:Name="libreoffice_CheckBox" Content="libreoffice" HorizontalAlignment="Left" Margin="407,80,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" RenderTransformOrigin="1.171,-0.547" Height="18" Width="127"/>
73 <CheckBox x:Name="NanaZip_CheckBox" Content="NanaZip" HorizontalAlignment="Left" Margin="162,103,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="128"/>
74 <CheckBox x:Name="WinRAR_CheckBox" Content="WinRAR" HorizontalAlignment="Left" Margin="162,126,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="128"/>
75 <CheckBox x:Name="NET_5_0_CheckBox" Content=".NET 5.0" HorizontalAlignment="Left" Margin="295,103,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="107"/>
76 <CheckBox x:Name="Revo_Uninstaller_CheckBox" Content="Revo Uninstaller" HorizontalAlignment="Left" Margin="407,103,0,0" VerticalAlignment="Top" Foreground="White" Height="18" Width="127"/>
77 <CheckBox x:Name="NET_6_0_CheckBox" Content=".NET 6.0" HorizontalAlignment="Left" Margin="295,126,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="107"/>
78 <CheckBox x:Name="Geek_Uninstaller_CheckBox" Content="Geek Uninstaller" HorizontalAlignment="Left" Margin="407,126,0,0" VerticalAlignment="Top" Foreground="White" RenderTransformOrigin="1.395,1.672" Height="18" Width="127"/>
79 <CheckBox x:Name="Epic_Games_Launcher_CheckBox" Content="Epic Games " HorizontalAlignment="Left" Margin="162,149,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="128"/>
80 <CheckBox x:Name="PDF_XChange_Viewer_CheckBox" Content="PDFXChange Viewer" HorizontalAlignment="Left" Margin="162,172,0,0" VerticalAlignment="Top" Foreground="White" Height="18" Width="130"/>
81 <CheckBox x:Name="PDF24_CreatorCheckBox" Content="PDF24 Creator" HorizontalAlignment="Left" Margin="162,195,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="128"/>
82 <CheckBox x:Name="PDF_XChange_Editor_CheckBox" Content="PDF-XChange Editor" HorizontalAlignment="Left" Margin="162,218,0,0" VerticalAlignment="Top" Foreground="White" Height="18" Width="128"/>
83 <CheckBox x:Name="VLC_media_player_CheckBox" Content="VLC media player" HorizontalAlignment="Left" Margin="162,241,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="128"/>
84 <CheckBox x:Name="Sublime_Text_2_CheckBox" Content="Sublime Text 2" HorizontalAlignment="Left" Margin="162,287,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" RenderTransformOrigin="0.158,1.726" Height="18" Width="128"/>
85 <CheckBox x:Name="NET_7_0_CheckBox" Content=".NET 7.0" HorizontalAlignment="Left" Margin="295,149,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="107"/>
86 <CheckBox x:Name="NET_8_0_CheckBox" Content=".NET 8.0" HorizontalAlignment="Left" Margin="295,172,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="107"/>
87 <CheckBox x:Name="VisualC22_CheckBox" Content="Visual C++22" HorizontalAlignment="Left" Margin="295,195,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="107"/>
88 <CheckBox x:Name="Visual_C_15_CheckBox" Content="Visual C++15" HorizontalAlignment="Left" Margin="295,218,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="107"/>
89 <CheckBox x:Name="Python_3_6_CheckBox" Content="Python 3.6" HorizontalAlignment="Left" Margin="295,241,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="107"/>
90 <CheckBox x:Name="FileZilla_CheckBox" Content="FileZilla" HorizontalAlignment="Left" Margin="295,264,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="107"/>
91 <CheckBox x:Name="Google_Drive_CheckBox" Content="Google Drive" HorizontalAlignment="Left" Margin="295,287,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="107"/>
92 <CheckBox x:Name="Adobe_Acrobat_Reader_CheckBox" Content="Adobe Reader" HorizontalAlignment="Left" Margin="407,149,0,0" VerticalAlignment="Top" Foreground="White" Height="18" Width="127"/>
93 <CheckBox x:Name="rockstar_CheckBox" Content="rockstar luncher" HorizontalAlignment="Left" Margin="407,172,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="127"/>
94 <CheckBox x:Name="AutoHotkey_CheckBox" Content="AutoHotkey" HorizontalAlignment="Left" Margin="407,195,0,0" VerticalAlignment="Top" Foreground="White" Height="18" Width="137" FontSize="14"/>
95 <CheckBox x:Name="AnyDesk_CheckBox" Content="AnyDesk" HorizontalAlignment="Left" Margin="407,218,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="127" RenderTransformOrigin="0.504,1.044"/>
96 <CheckBox x:Name="OBS_Studio_CheckBox" Content="OBS Studio" Margin="407,241,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18"/>
97 <CheckBox x:Name="VirtualBox_CheckBox" Content="VirtualBox" HorizontalAlignment="Left" Margin="407,264,0,0" VerticalAlignment="Top" Foreground="White" FontSize="12" Height="18" Width="137"/>
98 <CheckBox x:Name="Rufus_CheckBox" Content="Rufus" HorizontalAlignment="Left" Margin="407,287,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="127"/>
99 <CheckBox x:Name="Paint_NET_CheckBox" Content="Paint.NET" HorizontalAlignment="Left" Margin="162,264,0,0" VerticalAlignment="Top" Foreground="White" FontSize="14" Height="18" Width="128"/>
100 <TextBox x:Name="TextBox1" HorizontalAlignment="Center" Height="121" Margin="0,45,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="370" Grid.Row="1"/>
101 <Button x:Name="Uninstall_Btn" Content="Uninstall" HorizontalAlignment="Left" Margin="260,186,0,0" VerticalAlignment="Top" Height="40" Width="172" Foreground="White" Background="#FFEA3E3E" FontFamily="Segoe UI Black" FontSize="20" FontWeight="Bold" Grid.Row="1"/>
102 <Button x:Name="Install_Btn" Content="Install" HorizontalAlignment="Left" Margin="62,186,0,0" VerticalAlignment="Top" Height="40" Width="172" FontSize="22" FontFamily="Segoe UI Black" Background="#FF3B2BFF" Foreground="#FFFFEA00" Grid.Row="1"/>
103 </Grid>
104 </TabItem>
105 <TabItem Header="window optimisation">
106 <TabItem.Background>
107 <LinearGradientBrush EndPoint="0,1">
108 <GradientStop Color="#FFF0F0F0"/>
109 <GradientStop Color="White" Offset="1"/>
110 </LinearGradientBrush>
111 </TabItem.Background>
112 <Grid Background="#FF252525">
113 <Label Content="Mead by raad" HorizontalAlignment="Center" Margin="0,10,0,0" VerticalAlignment="Top" Background="Transparent" FontFamily="Bahnschrift Condensed" FontSize="18" Foreground="Red" Height="32" Width="90"/>
114 <Label Content="Chose service when you need to Stop or Unistall" HorizontalAlignment="Left" Margin="75,26,0,0" VerticalAlignment="Top" FontSize="16" FontFamily="Segoe Print" Background="Transparent" Foreground="#FFE8D977" Height="38" Width="368"/>
115 <Label Content="Dark Theme" HorizontalAlignment="Left" Margin="208,346,0,0" VerticalAlignment="Top" FontSize="16" FontFamily="Segoe Print" Background="Transparent" Foreground="#FFE8D977" Height="38" Width="114" RenderTransformOrigin="0.868,0.528"/>
116 <Button x:Name="remouveblot" Content="Remove all bloatware" HorizontalAlignment="Left" Margin="20,102,0,0" VerticalAlignment="Top" Height="32" Width="230" FontSize="14" FontFamily="Arial Black" Background="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" BorderBrush="White" BorderThickness="3,3,3,3" Foreground="#FFE0D23E"/>
117 <Button x:Name="blot_reg_key" Content="Remorve bloatware regkey" HorizontalAlignment="Left" Height="32" Margin="272,102,0,0" VerticalAlignment="Top" Width="230" FontFamily="Arial Black" FontSize="14" Background="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" BorderBrush="White" BorderThickness="3,3,3,3" Foreground="#FFE0D23E"/>
118 <Button x:Name="revert_reg_chang" Content="Revert registry changes" HorizontalAlignment="Left" Margin="20,174,0,0" VerticalAlignment="Top" Height="32" Width="230" FontSize="14" FontFamily="Arial Black" Background="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" BorderBrush="White" BorderThickness="3,3,3,3" Foreground="#FFE0D23E"/>
119 <Button x:Name="telemetry" Content="Disable Telemetry / Tasks" HorizontalAlignment="Left" Height="32" Margin="272,174,0,0" VerticalAlignment="Top" Width="230" FontFamily="Arial Black" FontSize="14" Background="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" BorderBrush="White" BorderThickness="3,3,3,3" Foreground="#FFE0D23E"/>
120 <Button x:Name="dark_enable" Content="Enable" HorizontalAlignment="Left" Margin="20,389,0,0" VerticalAlignment="Top" Height="32" Width="230" FontSize="14" FontFamily="Arial Black" Background="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" BorderBrush="White" BorderThickness="3,3,3,3" Foreground="#FFE0D23E"/>
121 <Button x:Name="dark_disable" Content="Disable" HorizontalAlignment="Left" Height="32" Margin="272,389,0,0" VerticalAlignment="Top" Width="230" FontFamily="Arial Black" FontSize="14" Background="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" BorderBrush="White" BorderThickness="3,3,3,3" Foreground="#FFE0D23E"/>
122 <Button x:Name="onedreive" Content="Remorve One Drive" HorizontalAlignment="Left" Height="32" Margin="272,243,0,0" VerticalAlignment="Top" Width="230" FontFamily="Arial Black" FontSize="14" Background="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" BorderBrush="White" BorderThickness="3,3,3,3" Foreground="#FFE0D23E"/>
123 <Button x:Name="disable_services" Content="Disable services" HorizontalAlignment="Left" Margin="20,243,0,0" VerticalAlignment="Top" Height="32" Width="230" FontSize="14" FontFamily="Arial Black" Background="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" BorderBrush="White" BorderThickness="3,3,3,3" Foreground="#FFE0D23E"/>
124 <TextBox x:Name="TextBox2" HorizontalAlignment="Center" Height="113" Margin="0,436,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="358" Background="#FFB7B7B7"/>
125 <Button x:Name="spotify_Install" Content="Install Spotify" HorizontalAlignment="Left" Height="32" Margin="144,309,0,0" VerticalAlignment="Top" Width="230" FontFamily="Arial Black" FontSize="14" Background="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" BorderBrush="White" BorderThickness="3,3,3,3" Foreground="#FFE0D23E"/>
126 </Grid>
127 </TabItem>
128 </TabControl>
129</Window>
130'@
131
132$input = $input -replace '^<Window.*', '<Window' -replace 'mc:Ignorable="d"','' -replace "x:N",'N'
133[xml]$xaml = $input
134$xmlreader=(New-Object System.Xml.XmlNodeReader $xaml)
135$xamlForm=[Windows.Markup.XamlReader]::Load( $xmlreader )
136
137$TextBox = $xamlForm.FindName("TextBox1")
138$TextBox2 = $xamlForm.FindName("TextBox2")
139
140$xaml.SelectNodes("//*[@Name]") | ForEach-Object -Process {
141 Set-Variable -Name ($_.Name) -Value $xamlForm.FindName($_.Name)
142 }
143
144# code to run before button click event
145#-----------------------------------
146$Install_Btn.Add_Click({
147
148 if ($Chrome_CheckBox.IsChecked) {
149 $command = "choco install googlechrome --version 122.0.6261.39 -y --force --ignore-checksums"
150 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
151 $TextBox.Text += "Installation de Chrome terminee." + "`r`n"
152 }
153 if ($Fierfox_CheckBox.IsChecked) {
154 $command = "choco install firefox --version 122.0.1 -y --force --ignore-checksums"
155 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
156 $TextBox.Text += "Installation de Firefox terminee." + "`r`n"
157 }
158 if ($Breave_CheckBox.IsChecked) {
159 $command = "choco install brave --version 1.62.165 -y --force --ignore-checksums"
160 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
161 $TextBox.Text += "Installation de Brave terminee." + "`r`n"
162 }
163 if ($Discord_CheckBox.IsChecked) {
164 $command = "choco install discord --version 1.0.9005 -y --force --ignore-checksums"
165 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
166 $TextBox.Text += "Installation de Discord terminee." + "`r`n"
167 }
168 if ($ONLYOFFICE_CheckBox.IsChecked) {
169 $command = "choco install onlyoffice --version 8.0.0 -y --force --ignore-checksums"
170 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
171 $TextBox.Text += "Installation de ONLYOFFICE terminee." + "`r`n"
172 }
173 if ($Everything_CheckBox.IsChecked) {
174 $command = "choco install everything --version 1.4.11024 -y --force --ignore-checksums"
175 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
176 $TextBox.Text += "Installation de Everything terminee." + "`r`n"
177 }
178 if ($powershell_CheckBox.IsChecked) {
179 $command = "choco install powershell.portable --version 7.1.3 -y --force --ignore-checksums"
180 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
181 $TextBox.Text += "Installation de PowerShell terminee." + "`r`n"
182 }
183 if ($Visual_Studio_Code_CheckBox.IsChecked) {
184 $command = "choco install vscode -y --force --ignore-checksums"
185 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
186 $TextBox.Text += "Installation de Vscode terminee." + "`r`n"
187 }
188 if ($Visual_Studio_Community22_CheckBox.IsChecked) {
189 $command = "choco install visualstudio2022community --version 117.9.0.0 -y --force --ignore-checksums"
190 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
191 $TextBox.Text += "Installation de Visual Studio 2022 Community terminee." + "`r`n"
192 }
193 if ($Steam_CheckBox.IsChecked) {
194 $command = "choco install steam --version 2.10.91.91221129 -y --force --ignore-checksums"
195 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
196 $TextBox.Text += "Installation de Steam terminee." + "`r`n"
197 }
198 if ($DS4Windows_CheckBox.IsChecked) {
199 $command = "choco install ds4windows --version 3.3.3 -y --force --ignore-checksums"
200 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
201 $TextBox.Text += "Installation de DS4Windows terminee." + "`r`n"
202 }
203 if ($NanaZip_CheckBox.IsChecked) {
204 $command = "choco install nanazip --version 2.0.450.0 -y --force --ignore-checksums"
205 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
206 $TextBox.Text += "Installation de NanaZip terminee." + "`r`n"
207 }
208 if ($WinRAR_CheckBox.IsChecked) {
209 $command = "choco install winrar --version 6.24 -y --force --ignore-checksums"
210 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
211 $TextBox.Text += "Installation de WinRAR terminee." + "`r`n"
212 }
213 if ($Epic_Games_Launcher_CheckBox.IsChecked) {
214 $command = "choco install epicgameslauncher --version 1.3.93 -y --force --ignore-checksums"
215 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
216 $TextBox.Text += "Installation de Epic Games Launcher terminee." + "`r`n"
217 }
218 if ($PDF_XChange_Viewer_CheckBox.IsChecked) {
219 $command = "choco install pdfxchangeviewer --version 2.5.317.20161116 -y --force --ignore-checksums"
220 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
221 $TextBox.Text += "Installation de PDF-XChange Viewer terminee." + "`r`n"
222 }
223 if ($PDF24_CreatorCheckBox.IsChecked) {
224 $command = "choco install pdf24 --version 11.15.2 -y --force --ignore-checksums"
225 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
226 $TextBox.Text += "Installation de PDF24 Creator terminee." + "`r`n"
227 }
228 if ($PDF_XChange_Editor_CheckBox.IsChecked) {
229 $command = "choco install pdfxchangeeditor --version 10.2.1.385 -y --force --ignore-checksums"
230 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
231 $TextBox.Text += "Installation de PDF-XChange Editor terminee." + "`r`n"
232 }
233 if ($VLC_media_player_CheckBox.IsChecked) {
234 $command = "choco install vlc --version 3.0.20 -y --force --ignore-checksums"
235 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
236 $TextBox.Text += "Installation de VLC Media Player terminee." + "`r`n"
237 }
238 if ($Paint_NET_CheckBox.IsChecked) {
239 $command = "choco install paint.net -y --force --ignore-checksums"
240 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
241 $TextBox.Text += "Installation de paint.net terminee." + "`r`n"
242 }
243 if ($Sublime_Text_2_CheckBox.IsChecked) {
244 $command = "choco install sublimetext2 --version 2.0.2.2224 -y --force --ignore-checksums"
245 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
246 $TextBox.Text += "Installation de Sublime Text 2 terminee." + "`r`n"
247 }
248 if ($NET_4_8_CheckBox.IsChecked) {
249 $command = "choco install netfx-4.8-devpack --version 4.8.0.20190930 -y --force --ignore-checksums"
250 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
251 $TextBox.Text += "Installation de .NET Framework 4.8 Developer Pack terminee." + "`r`n"
252 }
253 if ($NET_5_0_CheckBox.IsChecked) {
254 $command = "choco install dotnet-5.0-desktopruntime --version 5.0.17 -y --force --ignore-checksums"
255 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
256 $TextBox.Text += "Installation de .NET 5.0 Desktop Runtime terminee." + "`r`n"
257 }
258 if ($NET_6_0_CheckBox.IsChecked) {
259 $command = "choco install dotnet-6.0-desktopruntime --version 6.0.27 -y --force --ignore-checksums"
260 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
261 $TextBox.Text += "Installation de .NET 6.0 Desktop Runtime terminee." + "`r`n"
262 }
263 if ($NET_7_0_CheckBox.IsChecked) {
264 $command = "choco install dotnet-7.0-desktopruntime --version 7.0.16 -y --force --ignore-checksums"
265 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
266 $TextBox.Text += "Installation de .NET 7.0 Desktop Runtime terminee." + "`r`n"
267 }
268 if ($NET_8_0_CheckBox.IsChecked) {
269 $command = "choco install dotnet-8.0-desktopruntime --version 8.0.2 -y --force --ignore-checksums"
270 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
271 $TextBox.Text += "Installation de .NET 8.0 Desktop Runtime terminee." + "`r`n"
272 }
273 if ($VisualC22_CheckBox.IsChecked) {
274 $command = "choco install vcredist140 -y --force --ignore-checksums"
275 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
276 $TextBox.Text += "Installation de C++ Redistributable 2022 terminee." + "`r`n"
277 }
278 if ($Visual_C_15_CheckBox.IsChecked) {
279 $command = "choco install vcredist2015 -y --force --ignore-checksums"
280 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
281 $TextBox.Text += "Installation de C++ Redistributable 2015 terminee." + "`r`n"
282 }
283 if ($Python_3_6_CheckBox.IsChecked) {
284 $command = "choco install python36 --version 3.6.8 -y --force --ignore-checksums"
285 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
286 $TextBox.Text += "Installation de Python 3.6 terminee." + "`r`n"
287 }
288 if ($FileZilla_CheckBox.IsChecked) {
289 $command = "choco install filezilla --version 3.66.5 -y --force --ignore-checksums"
290 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
291 $TextBox.Text += "Installation de FileZilla terminee." + "`r`n"
292 }
293 if ($Google_Drive_CheckBox.IsChecked) {
294 $command = "choco install google-drive-file-stream --version 56.0.11.2022 -y --force --ignore-checksums"
295 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
296 $TextBox.Text += "Installation de Google Drive File Stream terminee." + "`r`n"
297 }
298 if ($libreoffice_CheckBox.IsChecked) {
299 $command = "choco install libreoffice-sdk --version 7.5.2 -y --force --ignore-checksums"
300 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
301 $TextBox.Text += "Installation de LibreOffice SDK terminee." + "`r`n"
302 }
303 if ($Revo_Uninstaller_CheckBox.IsChecked) {
304 $command = "choco install revo-uninstaller --version 2.4.5 -y --force --ignore-checksums"
305 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
306 $TextBox.Text += "Installation de Revo Uninstaller terminee." + "`r`n"
307 }
308 if ($Geek_Uninstaller_CheckBox.IsChecked) {
309 $command = "choco install geekuninstaller --version 1.5.2.165 -y --force --ignore-checksums"
310 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
311 $TextBox.Text += "Installation de Geek Uninstaller terminee." + "`r`n"
312 }
313 if ($Adobe_Acrobat_Reader_CheckBox.IsChecked) {
314 $command = "choco install adobereader --version 2023.8.20533 -y --force --ignore-checksums"
315 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
316 $TextBox.Text += "Installation de Adobe Reader terminee." + "`r`n"
317 }
318 if ($rockstar_CheckBox.IsChecked) {
319 $command = "choco install rockstar-launcher -y --force --ignore-checksums"
320 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
321 $TextBox.Text += "Installation de rockstar luncher terminee." + "`r`n"
322 }
323 if ($AutoHotkey_CheckBox.IsChecked) {
324 $command = "choco install autohotkey --version 1.1.37.1 -y --force --ignore-checksums"
325 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
326 $TextBox.Text += "Installation de AutoHotkey terminee." + "`r`n"
327 }
328 if ($AnyDesk_CheckBox.IsChecked) {
329 $command = "choco install anydesk.install --version 8.0.8 -y --force --ignore-checksums"
330 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
331 $TextBox.Text += "Installation de AnyDesk terminee." + "`r`n"
332 }
333 if ($OBS_Studio_CheckBox.IsChecked) {
334 $command = "choco install obs-studio --version 30.0.2 -y --force --ignore-checksums"
335 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
336 $TextBox.Text += "Installation de OBS Studio terminee." + "`r`n"
337 }
338 if ($VirtualBox_CheckBox.IsChecked) {
339 $command = "choco install virtualbox --version 7.0.14 -y --force --ignore-checksums"
340 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
341 $TextBox.Text += "Installation de VirtualBox terminee." + "`r`n"
342 }
343 if ($Rufus_CheckBox.IsChecked) {
344 $command = "choco install rufus.portable --version 4.4.0 -y --force --ignore-checksums"
345 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
346 $TextBox.Text += "Installation de Rufus terminee." + "`r`n"
347 }
348})
349
350# code to run when button is clicked
351#-----------------------------------
352$Uninstall_Btn.Add_Click({
353 if ($Chrome_CheckBox.IsChecked) {
354 $command = "choco uninstall googlechrome -y "
355 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
356 $TextBox.Text += "Desinstallation de Chrome terminee." + "`r`n"
357 }
358 if ($Fierfox_CheckBox.IsChecked) {
359 $command = "choco uninstall firefox -y "
360 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
361 $TextBox.Text += "Desinstallation de Firefox terminee." + "`r`n"
362 }
363 if ($Breave_CheckBox.IsChecked) {
364 $command = "choco uninstall brave -y "
365 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
366 $TextBox.Text += "Desinstallation de Brave terminee." + "`r`n"
367 }
368 if ($Discord_CheckBox.IsChecked) {
369 $command = "choco uninstall discord -y "
370 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
371 $TextBox.Text += "Desinstallation de Discord terminee." + "`r`n"
372 }
373 if ($ONLYOFFICE_CheckBox.IsChecked) {
374 $command = "choco uninstall onlyoffice -y "
375 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
376 $TextBox.Text += "Desinstallation de ONLYOFFICE terminee." + "`r`n"
377 }
378 if ($Everything_CheckBox.IsChecked) {
379 $command = "choco uninstall everything -y "
380 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
381 $TextBox.Text += "Desinstallation de Everything terminee." + "`r`n"
382 }
383 if ($powershell_CheckBox.IsChecked) {
384 $command = "choco uninstall powershell.portable -y "
385 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
386 $TextBox.Text += "Desinstallation de PowerShell terminee." + "`r`n"
387 }
388 if ($Visual_Studio_Code_CheckBox.IsChecked) {
389 $command = "choco uninstall vscode -y "
390 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
391 $TextBox.Text += "Desinstallation de Visual Studio Code terminee." + "`r`n"
392 }
393 if ($Visual_Studio_Community22_CheckBox.IsChecked) {
394 $command = "choco uninstall visualstudio2022community -y "
395 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
396 $TextBox.Text += "Desinstallation de Visual Studio 2022 Community terminee." + "`r`n"
397 }
398 if ($Steam_CheckBox.IsChecked) {
399 $command = "choco uninstall steam -y "
400 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
401 $TextBox.Text += "Desinstallation de Steam terminee." + "`r`n"
402 }
403 if ($DS4Windows_CheckBox.IsChecked) {
404 $command = "choco uninstall ds4windows -y "
405 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
406 $TextBox.Text += "Desinstallation de DS4Windows terminee." + "`r`n"
407 }
408 if ($NanaZip_CheckBox.IsChecked) {
409 $command = "choco uninstall nanazip -y "
410 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
411 $TextBox.Text += "Desinstallation de NanaZip terminee." + "`r`n"
412 }
413 if ($WinRAR_CheckBox.IsChecked) {
414 $command = "choco uninstall winrar -y "
415 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
416 $TextBox.Text += "Desinstallation de WinRAR terminee." + "`r`n"
417 }
418 if ($Epic_Games_Launcher_CheckBox.IsChecked) {
419 $command = "choco uninstall epicgameslauncher -y "
420 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
421 $TextBox.Text += "Desinstallation de Epic Games Launcher terminee." + "`r`n"
422 }
423 if ($PDF_XChange_Viewer_CheckBox.IsChecked) {
424 $command = "choco uninstall pdfxchangeviewer -y "
425 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
426 $TextBox.Text += "Desinstallation de PDF-XChange Viewer terminee." + "`r`n"
427 }
428 if ($PDF24_CreatorCheckBox.IsChecked) {
429 $command = "choco uninstall pdf24 -y "
430 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
431 $TextBox.Text += "Desinstallation de PDF24 Creator terminee." + "`r`n"
432 }
433 if ($PDF_XChange_Editor_CheckBox.IsChecked) {
434 $command = "choco uninstall pdfxchangeeditor -y "
435 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
436 $TextBox.Text += "Desinstallation de PDF-XChange Editor terminee." + "`r`n"
437 }
438 if ($VLC_media_player_CheckBox.IsChecked) {
439 $command = "choco uninstall vlc -y "
440 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
441 $TextBox.Text += "Desinstallation de VLC Media Player terminee." + "`r`n"
442 }
443 if ($Sublime_Text_2_CheckBox.IsChecked) {
444 $command = "choco uninstall sublimetext2 -y "
445 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
446 $TextBox.Text += "Desinstallation de Sublime Text 2 terminee." + "`r`n"
447 }
448 if ($NET_4_8_CheckBox.IsChecked) {
449 $command = "choco uninstall netfx-4.8-devpack -y "
450 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
451 $TextBox.Text += "Desinstallation de .NET Framework 4.8 Developer Pack terminee." + "`r`n"
452 }
453 if ($NET_5_0_CheckBox.IsChecked) {
454 $command = "choco uninstall dotnet-5.0-desktopruntime -y "
455 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
456 $TextBox.Text += "Desinstallation de .NET 5.0 Desktop Runtime terminee." + "`r`n"
457 }
458 if ($NET_6_0_CheckBox.IsChecked) {
459 $command = "choco uninstall dotnet-6.0-desktopruntime -y "
460 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
461 $TextBox.Text += "Desinstallation de .NET 6.0 Desktop Runtime terminee." + "`r`n"
462 }
463 if ($NET_7_0_CheckBox.IsChecked) {
464 $command = "choco uninstall dotnet-7.0-desktopruntime -y "
465 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
466 $TextBox.Text += "Desinstallation de .NET 7.0 Desktop Runtime terminee." + "`r`n"
467 }
468 if ($NET_8_0_CheckBox.IsChecked) {
469 $command = "choco uninstall dotnet-8.0-desktopruntime -y "
470 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
471 $TextBox.Text += "Desinstallation de .NET 8.0 Desktop Runtime terminee." + "`r`n"
472 }
473 if ($VisualC22_CheckBox.IsChecked) {
474 $command = "choco uninstall vcredist140 -y "
475 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
476 $TextBox.Text += "Desinstallation de C++ Redistributable 2022 terminee." + "`r`n"
477 }
478 if ($Visual_C_15_CheckBox.IsChecked) {
479 $command = "choco uninstall vcredist2015 -y "
480 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
481 $TextBox.Text += "Desinstallation de C++ Redistributable 2015 terminee." + "`r`n"
482 }
483 if ($Python_3_6_CheckBox.IsChecked) {
484 $command = "choco uninstall python36 -y "
485 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
486 $TextBox.Text += "Desinstallation de Python 3.6 terminee." + "`r`n"
487 }
488 if ($FileZilla_CheckBox.IsChecked) {
489 $command = "choco uninstall filezilla -y "
490 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
491 $TextBox.Text += "Desinstallation de FileZilla terminee." + "`r`n"
492 }
493 if ($Google_Drive_CheckBox.IsChecked) {
494 $command = "choco uninstall google-drive-file-stream -y "
495 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
496 $TextBox.Text += "Desinstallation de Google Drive File Stream terminee." + "`r`n"
497 }
498 if ($libreoffice_CheckBox.IsChecked) {
499 $command = "choco uninstall libreoffice-sdk -y "
500 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
501 $TextBox.Text += "Desinstallation de LibreOffice SDK terminee." + "`r`n"
502 }
503 if ($Revo_Uninstaller_CheckBox.IsChecked) {
504 $command = "choco uninstall revo-uninstaller -y "
505 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
506 $TextBox.Text += "Desinstallation de Revo Uninstaller terminee." + "`r`n"
507 }
508 if ($Geek_Uninstaller_CheckBox.IsChecked) {
509 $command = "choco uninstall geekuninstaller -y "
510 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
511 $TextBox.Text += "Desinstallation de Geek Uninstaller terminee." + "`r`n"
512 }
513 if ($Adobe_Acrobat_Reader_CheckBox.IsChecked) {
514 $command = "choco uninstall adobereader -y "
515 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
516 $TextBox.Text += "Desinstallation de Adobe Reader terminee." + "`r`n"
517 }
518 if ($rockstar_CheckBox.IsChecked) {
519 $command = "choco uninstall rockstar-launcher -y "
520 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
521 $TextBox.Text += "Desinstallation de rockstar luncher terminee." + "`r`n"
522 }
523 if ($AutoHotkey_CheckBox.IsChecked) {
524 $command = "choco uninstall autohotkey -y "
525 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
526 $TextBox.Text += "Desinstallation de AutoHotkey terminee." + "`r`n"
527 }
528 if ($AnyDesk_CheckBox.IsChecked) {
529 $command = "choco uninstall anydesk.install -y "
530 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
531 $TextBox.Text += "Desinstallation de AnyDesk terminee." + "`r`n"
532 }
533 if ($OBS_Studio_CheckBox.IsChecked) {
534 $command = "choco uninstall obs-studio -y "
535 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
536 $TextBox.Text += "Desinstallation de OBS Studio terminee." + "`r`n"
537 }
538 if ($VirtualBox_CheckBox.IsChecked) {
539 $command = "choco uninstall virtualbox -y "
540 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
541 $TextBox.Text += "Desinstallation de VirtualBox terminee." + "`r`n"
542 }
543 if ($Rufus_CheckBox.IsChecked) {
544 $command = "choco uninstall rufus.portable -y "
545 Start-Process -Wait -NoNewWindow -FilePath "powershell" -ArgumentList $command
546 $TextBox.Text += "Desinstallation de Rufus terminee." + "`r`n"
547 }
548
549})
550
551
552# -------------------------------------Tab 2----------------------------------------
553
554$Bloatware = @(
555 #Unnecessary Windows 10 AppX Apps
556 "Microsoft.3DBuilder"
557 "Microsoft.Microsoft3DViewer"
558 "Microsoft.AppConnector"
559 "Microsoft.BingFinance"
560 "Microsoft.BingNews"
561 "Microsoft.BingSports"
562 "Microsoft.BingTranslator"
563 "Microsoft.BingWeather"
564 "Microsoft.BingFoodAndDrink"
565 "Microsoft.BingHealthAndFitness"
566 "Microsoft.BingTravel"
567 "Microsoft.MinecraftUWP"
568 "Microsoft.GamingServices"
569 # "Microsoft.WindowsReadingList"
570 "Microsoft.GetHelp"
571 "Microsoft.Getstarted"
572 "Microsoft.Messaging"
573 "Microsoft.Microsoft3DViewer"
574 "Microsoft.MicrosoftSolitaireCollection"
575 "Microsoft.NetworkSpeedTest"
576 "Microsoft.News"
577 "Microsoft.Office.Lens"
578 "Microsoft.Office.Sway"
579 "Microsoft.Office.OneNote"
580 "Microsoft.OneConnect"
581 "Microsoft.People"
582 "Microsoft.Print3D"
583 "Microsoft.SkypeApp"
584 "Microsoft.Wallet"
585 "Microsoft.Whiteboard"
586 "Microsoft.WindowsAlarms"
587 "microsoft.windowscommunicationsapps"
588 "Microsoft.WindowsFeedbackHub"
589 "Microsoft.WindowsMaps"
590 "Microsoft.WindowsPhone"
591 "Microsoft.WindowsSoundRecorder"
592 "Microsoft.XboxApp"
593 "Microsoft.ConnectivityStore"
594 "Microsoft.CommsPhone"
595 "Microsoft.ScreenSketch"
596 "Microsoft.Xbox.TCUI"
597 #"Microsoft.XboxGameOverlay"
598 #"Microsoft.XboxGameCallableUI"
599 "Microsoft.XboxSpeechToTextOverlay"
600 "Microsoft.MixedReality.Portal"
601 "Microsoft.XboxIdentityProvider"
602 "Microsoft.ZuneMusic"
603 "Microsoft.ZuneVideo"
604 "Microsoft.YourPhone"
605 "Microsoft.Getstarted"
606 "Microsoft.MicrosoftOfficeHub"
607
608 #Sponsored Windows 10 AppX Apps
609 #Add sponsored/featured apps to remove in the "*AppName*" format
610 "*EclipseManager*"
611 "*ActiproSoftwareLLC*"
612 "*AdobeSystemsIncorporated.AdobePhotoshopExpress*"
613 "*Duolingo-LearnLanguagesforFree*"
614 "*PandoraMediaInc*"
615 "*CandyCrush*"
616 "*BubbleWitch3Saga*"
617 "*Wunderlist*"
618 "*Flipboard*"
619 "*Twitter*"
620 "*Facebook*"
621 "*Royal Revolt*"
622 "*Sway*"
623 "*Speed Test*"
624 "*Dolby*"
625 "*Viber*"
626 "*ACGMediaPlayer*"
627 "*Netflix*"
628 "*OneCalendar*"
629 "*LinkedInforWindows*"
630 "*HiddenCityMysteryofShadows*"
631 "*Hulu*"
632 "*HiddenCity*"
633 "*AdobePhotoshopExpress*"
634 "*HotspotShieldFreeVPN*"
635
636 #Optional: Typically not removed but you can if you need to for some reason
637 "*Microsoft.Advertising.Xaml*"
638 "*Microsoft.MSPaint*"
639 "*Microsoft.MicrosoftStickyNotes*"
640 #"*Microsoft.Windows.Photos*"
641 #"*Microsoft.WindowsCalculator*"
642 #"*Microsoft.WindowsStore*"
643)
644
645
646$remouveblot.Add_Click({
647 Write-Host "Removing Bloatware"
648
649 foreach ($Bloat in $Bloatware) {
650 Get-AppxPackage -Name $Bloat| Remove-AppxPackage
651 Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $Bloat | Remove-AppxProvisionedPackage -Online
652 Write-Host "Trying to remove $Bloat."
653 }
654
655 Write-Host "Finished Removing Bloatware Apps"
656 $TextBox2.Text += "Finished Removing Bloatware Apps" + "`r`n"
657
658 })
659
660$blot_reg_key.Add_Click({
661 # $ErrorActionPreference = 'SilentlyContinue'
662 $Keys = @(
663
664 New-PSDrive HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT
665 #Remove Background Tasks
666 "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\46928bounde.EclipseManager_2.2.4.51_neutral__a5h4egax66k6y"
667 "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0"
668 "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.MicrosoftOfficeHub_17.7909.7600.0_x64__8wekyb3d8bbwe"
669 "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy"
670 "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy"
671 "HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy"
672
673 #Windows File
674 "HKCR:\Extensions\ContractId\Windows.File\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0"
675
676 #Registry keys to delete if they aren't uninstalled by RemoveAppXPackage/RemoveAppXProvisionedPackage
677 "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\46928bounde.EclipseManager_2.2.4.51_neutral__a5h4egax66k6y"
678 "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0"
679 "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy"
680 "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy"
681 "HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy"
682
683 #Scheduled Tasks to delete
684 "HKCR:\Extensions\ContractId\Windows.PreInstalledConfigTask\PackageId\Microsoft.MicrosoftOfficeHub_17.7909.7600.0_x64__8wekyb3d8bbwe"
685
686 #Windows Protocol Keys
687 "HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0"
688 "HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy"
689 "HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy"
690 "HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy"
691
692 #Windows Share Target
693 "HKCR:\Extensions\ContractId\Windows.ShareTarget\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0"
694 )
695
696 #This writes the output of each key it is removing and also removes the keys listed above.
697 ForEach ($Key in $Keys) {
698 Write-Host "Removing $Key from registry"
699 Remove-Item $Key -Recurse
700 }
701 Write-Host "Additional bloatware keys have been removed!"
702 $TextBox2.Text += "Additional bloatware keys have been removed!" + "`r`n"
703
704 })
705
706
707$revert_reg_chang.Add_Click({
708 # $ErrorActionPreference = 'SilentlyContinue'
709 #This function will revert the changes you made when running the Start-Debloat function.
710
711 #This line reinstalls all of the bloatware that was removed
712 Get-AppxPackage -AllUsers | ForEach { Add-AppxPackage -Verbose -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" }
713
714 #Tells Windows to enable your advertising information.
715 Write-Host "Re-enabling key to show advertisement information"
716 $Advertising = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo"
717 If (Test-Path $Advertising) {
718 Set-ItemProperty $Advertising Enabled -Value 1
719 }
720
721 #Enables Cortana to be used as part of your Windows Search Function
722 Write-Host "Re-enabling Cortana to be used in your Windows Search"
723 $Search = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search"
724 If (Test-Path $Search) {
725 Set-ItemProperty $Search AllowCortana -Value 1
726 }
727
728 #Re-enables the Windows Feedback Experience for sending anonymous data
729 Write-Host "Re-enabling Windows Feedback Experience"
730 $Period = "HKCU:\Software\Microsoft\Siuf\Rules"
731 If (!(Test-Path $Period)) {
732 New-Item $Period
733 }
734 Set-ItemProperty $Period PeriodInNanoSeconds -Value 1
735
736 #Enables bloatware applications
737 Write-Host "Adding Registry key to allow bloatware apps to return"
738 $registryPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent"
739 If (!(Test-Path $registryPath)) {
740 New-Item $registryPath
741 }
742 Set-ItemProperty $registryPath DisableWindowsConsumerFeatures -Value 0
743
744 #Changes Mixed Reality Portal Key 'FirstRunSucceeded' to 1
745 Write-Host "Setting Mixed Reality Portal value to 1"
746 $Holo = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Holographic"
747 If (Test-Path $Holo) {
748 Set-ItemProperty $Holo FirstRunSucceeded -Value 1
749 }
750
751 #Re-enables live tiles
752 Write-Host "Enabling live tiles"
753 $Live = "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications"
754 If (!(Test-Path $Live)) {
755 New-Item $Live
756 }
757 Set-ItemProperty $Live NoTileApplicationNotification -Value 0
758
759 #Re-enables data collection
760 Write-Host "Re-enabling data collection"
761 $DataCollection = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection"
762 If (!(Test-Path $DataCollection)) {
763 New-Item $DataCollection
764 }
765 Set-ItemProperty $DataCollection AllowTelemetry -Value 1
766
767 #Re-enables People Icon on Taskbar
768 Write-Host "Enabling People Icon on Taskbar"
769 $People = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People'
770 If (Test-Path $People) {
771 Set-ItemProperty $People -Name PeopleBand -Value 1 -Verbose
772 }
773
774 #Re-enables suggestions on start menu
775 Write-Host "Enabling suggestions on the Start Menu"
776 $Suggestions = "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"
777 If (!(Test-Path $Suggestions)) {
778 New-Item $Suggestions
779 }
780 Set-ItemProperty $Suggestions SystemPaneSuggestionsEnabled -Value 1
781
782 #Re-enables scheduled tasks that were disabled when running the Debloat switch
783 Write-Host "Enabling scheduled tasks that were disabled"
784 Get-ScheduledTask XblGameSaveTaskLogon | Enable-ScheduledTask
785 Get-ScheduledTask XblGameSaveTask | Enable-ScheduledTask
786 Get-ScheduledTask Consolidator | Enable-ScheduledTask
787 Get-ScheduledTask UsbCeip | Enable-ScheduledTask
788 Get-ScheduledTask DmClient | Enable-ScheduledTask
789 Get-ScheduledTask DmClientOnScenarioDownload | Enable-ScheduledTask
790
791 Write-Host "Re-enabling and starting WAP Push Service"
792 #Enable and start WAP Push Service
793 Set-Service "dmwappushservice" -StartupType Automatic
794 Start-Service "dmwappushservice"
795
796 Write-Host "Re-enabling and starting the Diagnostics Tracking Service"
797 #Enabling the Diagnostics Tracking Service
798 Set-Service "DiagTrack" -StartupType Automatic
799 Start-Service "DiagTrack"
800 Write-Host "Done reverting changes!"
801
802 #
803 Write-Output "Restoring 3D Objects from Explorer 'My Computer' submenu"
804 $Objects32 = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}"
805 $Objects64 = "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}"
806 If (!(Test-Path $Objects32)) {
807 New-Item $Objects32
808 }
809 If (!(Test-Path $Objects64)) {
810 New-Item $Objects64
811 }
812 $TextBox2.Text += "Done reverting changes!" + "`r`n"
813
814 })
815
816 $telemetry.Add_Click({
817 # $ErrorActionPreference = 'SilentlyContinue'
818 #Disables Windows Feedback Experience
819 Write-Host "Disabling Windows Feedback Experience program"
820 $Advertising = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo"
821 If (Test-Path $Advertising) {
822 Set-ItemProperty $Advertising Enabled -Value 0
823 }
824
825 #Stops Cortana from being used as part of your Windows Search Function
826 Write-Host "Stopping Cortana from being used as part of your Windows Search Function"
827 $Search = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search"
828 If (Test-Path $Search) {
829 Set-ItemProperty $Search AllowCortana -Value 0
830 }
831
832 #Disables Web Search in Start Menu
833 Write-Host "Disabling Bing Search in Start Menu"
834 $WebSearch = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search"
835 Set-ItemProperty "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" BingSearchEnabled -Value 0
836 If (!(Test-Path $WebSearch)) {
837 New-Item $WebSearch
838 }
839 Set-ItemProperty $WebSearch DisableWebSearch -Value 1
840
841 #Stops the Windows Feedback Experience from sending anonymous data
842 Write-Host "Stopping the Windows Feedback Experience program"
843 $Period = "HKCU:\Software\Microsoft\Siuf\Rules"
844 If (!(Test-Path $Period)) {
845 New-Item $Period
846 }
847 Set-ItemProperty $Period PeriodInNanoSeconds -Value 0
848
849 #Prevents bloatware applications from returning and removes Start Menu suggestions
850 Write-Host "Adding Registry key to prevent bloatware apps from returning"
851 $registryPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent"
852 $registryOEM = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"
853 If (!(Test-Path $registryPath)) {
854 New-Item $registryPath
855 }
856 Set-ItemProperty $registryPath DisableWindowsConsumerFeatures -Value 1
857
858 If (!(Test-Path $registryOEM)) {
859 New-Item $registryOEM
860 }
861 Set-ItemProperty $registryOEM ContentDeliveryAllowed -Value 0
862 Set-ItemProperty $registryOEM OemPreInstalledAppsEnabled -Value 0
863 Set-ItemProperty $registryOEM PreInstalledAppsEnabled -Value 0
864 Set-ItemProperty $registryOEM PreInstalledAppsEverEnabled -Value 0
865 Set-ItemProperty $registryOEM SilentInstalledAppsEnabled -Value 0
866 Set-ItemProperty $registryOEM SystemPaneSuggestionsEnabled -Value 0
867
868 #Preping mixed Reality Portal for removal
869 Write-Host "Setting Mixed Reality Portal value to 0 so that you can uninstall it in Settings"
870 $Holo = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Holographic"
871 If (Test-Path $Holo) {
872 Set-ItemProperty $Holo FirstRunSucceeded -Value 0
873 }
874
875 #Disables Wi-fi Sense
876 Write-Host "Disabling Wi-Fi Sense"
877 $WifiSense1 = "HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting"
878 $WifiSense2 = "HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots"
879 $WifiSense3 = "HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\config"
880 If (!(Test-Path $WifiSense1)) {
881 New-Item $WifiSense1
882 }
883 Set-ItemProperty $WifiSense1 Value -Value 0
884 If (!(Test-Path $WifiSense2)) {
885 New-Item $WifiSense2
886 }
887 Set-ItemProperty $WifiSense2 Value -Value 0
888 Set-ItemProperty $WifiSense3 AutoConnectAllowedOEM -Value 0
889
890 #Disables live tiles
891 Write-Host "Disabling live tiles"
892 $Live = "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications"
893 If (!(Test-Path $Live)) {
894 New-Item $Live
895 }
896 Set-ItemProperty $Live NoTileApplicationNotification -Value 1
897
898 #Turns off Data Collection via the AllowTelemtry key by changing it to 0
899 Write-Host "Turning off Data Collection"
900 $DataCollection1 = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection"
901 $DataCollection2 = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection"
902 $DataCollection3 = "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollection"
903 If (Test-Path $DataCollection1) {
904 Set-ItemProperty $DataCollection1 AllowTelemetry -Value 0
905 }
906 If (Test-Path $DataCollection2) {
907 Set-ItemProperty $DataCollection2 AllowTelemetry -Value 0
908 }
909 If (Test-Path $DataCollection3) {
910 Set-ItemProperty $DataCollection3 AllowTelemetry -Value 0
911 }
912
913 #Disabling Location Tracking
914 Write-Host "Disabling Location Tracking"
915 $SensorState = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}"
916 $LocationConfig = "HKLM:\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration"
917 If (!(Test-Path $SensorState)) {
918 New-Item $SensorState
919 }
920 Set-ItemProperty $SensorState SensorPermissionState -Value 0
921 If (!(Test-Path $LocationConfig)) {
922 New-Item $LocationConfig
923 }
924 Set-ItemProperty $LocationConfig Status -Value 0
925
926 #Disables People icon on Taskbar
927 Write-Host "Disabling People icon on Taskbar"
928 $People = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People'
929 If (Test-Path $People) {
930 Set-ItemProperty $People -Name PeopleBand -Value 0
931 }
932
933 #Disables scheduled tasks that are considered unnecessary
934 Write-Host "Disabling scheduled tasks"
935 #Get-ScheduledTask XblGameSaveTaskLogon | Disable-ScheduledTask
936 Get-ScheduledTask XblGameSaveTask | Disable-ScheduledTask
937 Get-ScheduledTask Consolidator | Disable-ScheduledTask
938 Get-ScheduledTask UsbCeip | Disable-ScheduledTask
939 Get-ScheduledTask DmClient | Disable-ScheduledTask
940 Get-ScheduledTask DmClientOnScenarioDownload | Disable-ScheduledTask
941
942 #Write-Host "Uninstalling Telemetry Windows Updates"
943 #Uninstalls Some Windows Updates considered to be Telemetry. !WIP!
944 #Wusa /Uninstall /KB:3022345 /norestart /quiet
945 #Wusa /Uninstall /KB:3068708 /norestart /quiet
946 #Wusa /Uninstall /KB:3075249 /norestart /quiet
947 #Wusa /Uninstall /KB:3080149 /norestart /quiet
948
949 Write-Host "Stopping and disabling WAP Push Service"
950 #Stop and disable WAP Push Service
951 Stop-Service "dmwappushservice"
952 Set-Service "dmwappushservice" -StartupType Disabled
953
954 Write-Host "Stopping and disabling Diagnostics Tracking Service"
955 #Disabling the Diagnostics Tracking Service
956 Stop-Service "DiagTrack"
957 Set-Service "DiagTrack" -StartupType Disabled
958 Write-Host "Telemetry has been disabled!"
959 $TextBox2.Text += "Telemetry has been disabled!" + "`r`n"
960
961 })
962
963
964$dark_enable.Add_Click({
965 Write-Host "Enabling Dark Mode"
966 $Theme = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"
967 Set-ItemProperty $Theme AppsUseLightTheme -Value 0
968 Start-Sleep 1
969 Write-Host "Dark Mode Enabled"
970 $TextBox2.Text += "Dark Mode Enabled" + "`r`n"
971
972
973 })
974
975
976$dark_disable.Add_Click({
977 Write-Host "Disabling Dark Mode"
978 $Theme = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"
979 Set-ItemProperty $Theme AppsUseLightTheme -Value 1
980 Start-Sleep 1
981 Write-Host "Dark Mode Disabled"
982 $TextBox2.Text += "Dark Mode Disabled" + "`r`n"
983
984 })
985
986
987
988
989
990
991 $services = @(
992 "diagnosticshub.standardcollector.service" # Microsoft (R) Diagnostics Hub Standard Collector Service
993 "DiagTrack" # Diagnostics Tracking Service
994 "DPS"
995 "dmwappushservice" # WAP Push Message Routing Service (see known issues)
996 "lfsvc" # Geolocation Service
997 "MapsBroker" # Downloaded Maps Manager
998 "NetTcpPortSharing" # Net.Tcp Port Sharing Service
999 "RemoteAccess" # Routing and Remote Access
1000 "RemoteRegistry" # Remote Registry
1001 "SharedAccess" # Internet Connection Sharing (ICS)
1002 "TrkWks" # Distributed Link Tracking Client
1003 #"WbioSrvc" # Windows Biometric Service (required for Fingerprint reader / facial detection)
1004 #"WlanSvc" # WLAN AutoConfig
1005 "WMPNetworkSvc" # Windows Media Player Network Sharing Service
1006 #"wscsvc" # Windows Security Center Service
1007 "WSearch" # Windows Search
1008 "XblAuthManager" # Xbox Live Auth Manager
1009 "XblGameSave" # Xbox Live Game Save Service
1010 "XboxNetApiSvc" # Xbox Live Networking Service
1011 "XboxGipSvc" #Disables Xbox Accessory Management Service
1012 "ndu" # Windows Network Data Usage Monitor
1013 "WerSvc" #disables windows error reporting
1014 #"Spooler" #Disables your printer
1015 "Fax" #Disables fax
1016 "fhsvc" #Disables fax histroy
1017 "gupdate" #Disables google update
1018 "gupdatem" #Disable another google update
1019 "stisvc" #Disables Windows Image Acquisition (WIA)
1020 "AJRouter" #Disables (needed for AllJoyn Router Service)
1021 "MSDTC" # Disables Distributed Transaction Coordinator
1022 "WpcMonSvc" #Disables Parental Controls
1023 "PhoneSvc" #Disables Phone Service(Manages the telephony state on the device)
1024 "PrintNotify" #Disables Windows printer notifications and extentions
1025 "PcaSvc" #Disables Program Compatibility Assistant Service
1026 "WPDBusEnum" #Disables Portable Device Enumerator Service
1027 #"LicenseManager" #Disable LicenseManager(Windows store may not work properly)
1028 "seclogon" #Disables Secondary Logon(disables other credentials only password will work)
1029 "SysMain" #Disables sysmain
1030 "lmhosts" #Disables TCP/IP NetBIOS Helper
1031 "wisvc" #Disables Windows Insider program(Windows Insider will not work)
1032 "FontCache" #Disables Windows font cache
1033 "RetailDemo" #Disables RetailDemo whic is often used when showing your device
1034 "ALG" # Disables Application Layer Gateway Service(Provides support for 3rd party protocol plug-ins for Internet Connection Sharing)
1035 #"BFE" #Disables Base Filtering Engine (BFE) (is a service that manages firewall and Internet Protocol security)
1036 #"BrokerInfrastructure" #Disables Windows infrastructure service that controls which background tasks can run on the system.
1037 "SCardSvr" #Disables Windows smart card
1038 "EntAppSvc" #Disables enterprise application management.
1039 "BthAvctpSvc" #Disables AVCTP service (if you use Bluetooth Audio Device or Wireless Headphones. then don't disable this)
1040 #"FrameServer" #Disables Windows Camera Frame Server(this allows multiple clients to access video frames from camera devices.)
1041 "Browser" #Disables computer browser
1042 "BthAvctpSvc" #AVCTP service (This is Audio Video Control Transport Protocol service.)
1043 #"BDESVC" #Disables bitlocker
1044 "iphlpsvc" #Disables ipv6 but most websites don't use ipv6 they use ipv4
1045 "edgeupdate" # Disables one of edge update service
1046 "MicrosoftEdgeElevationService" # Disables one of edge service
1047 "edgeupdatem" # disbales another one of update service (disables edgeupdatem)
1048 "SEMgrSvc" #Disables Payments and NFC/SE Manager (Manages payments and Near Field Communication (NFC) based secure elements)
1049 #"PNRPsvc" # Disables peer Name Resolution Protocol ( some peer-to-peer and collaborative applications, such as Remote Assistance, may not function, Discord will still work)
1050 #"p2psvc" # Disbales Peer Name Resolution Protocol(nables multi-party communication using Peer-to-Peer Grouping. If disabled, some applications, such as HomeGroup, may not function. Discord will still work)
1051 #"p2pimsvc" # Disables Peer Networking Identity Manager (Peer-to-Peer Grouping services may not function, and some applications, such as HomeGroup and Remote Assistance, may not function correctly.Discord will still work)
1052 "PerfHost" #Disables remote users and 64-bit processes to query performance .
1053 "BcastDVRUserService_48486de" #Disables GameDVR and Broadcast is used for Game Recordings and Live Broadcasts
1054 "CaptureService_48486de" #Disables ptional screen capture functionality for applications that call the Windows.Graphics.Capture API.
1055 "cbdhsvc_48486de" #Disables cbdhsvc_48486de (clipboard service it disables)
1056 #"BluetoothUserService_48486de" #disbales BluetoothUserService_48486de (The Bluetooth user service supports proper functionality of Bluetooth features relevant to each user session.)
1057 "WpnService" #Disables WpnService (Push Notifications may not work )
1058 #"StorSvc" #Disables StorSvc (usb external hard drive will not be reconised by windows)
1059 "RtkBtManServ" #Disables Realtek Bluetooth Device Manager Service
1060 "QWAVE" #Disables Quality Windows Audio Video Experience (audio and video might sound worse)
1061 #Hp services
1062 "HPAppHelperCap"
1063 "HPDiagsCap"
1064 "HPNetworkCap"
1065 "HPSysInfoCap"
1066 "HpTouchpointAnalyticsService"
1067 #hyper-v services
1068 "HvHost"
1069 "vmickvpexchange"
1070 "vmicguestinterface"
1071 "vmicshutdown"
1072 "vmicheartbeat"
1073 "vmicvmsession"
1074 "vmicrdv"
1075 "vmictimesync"
1076 # Services which cannot be disabled
1077 #"WdNisSvc"
1078)
1079
1080
1081
1082
1083$disable_services.Add_Click({
1084
1085 foreach ($service in $services) {
1086 Write-Host "Setting $service StartupType to Manual"
1087 Get-Service -Name $service -ErrorAction SilentlyContinue | Set-Service -StartupType Manual
1088}
1089
1090 Write-Host "Essential Tweaks Completed - Please Reboot"
1091 $TextBox2.Text += "Disebling services Completed - Please Reboot" + "`r`n"
1092
1093
1094 })
1095
1096
1097
1098
1099$onedreive.Add_Click({
1100
1101If (Test-Path "$env:USERPROFILE\OneDrive\*") {
1102 Write-Host "Files found within the OneDrive folder! Checking to see if a folder named OneDriveBackupFiles exists."
1103 Start-Sleep 1
1104
1105 If (Test-Path "$env:USERPROFILE\Desktop\OneDriveBackupFiles") {
1106 Write-Host "A folder named OneDriveBackupFiles already exists on your desktop. All files from your OneDrive location will be moved to that folder."
1107 }
1108 else {
1109 If (!(Test-Path "$env:USERPROFILE\Desktop\OneDriveBackupFiles")) {
1110 Write-Host "A folder named OneDriveBackupFiles will be created and will be located on your desktop. All files from your OneDrive location will be located in that folder."
1111 New-item -Path "$env:USERPROFILE\Desktop" -Name "OneDriveBackupFiles"-ItemType Directory -Force
1112 Write-Host "Successfully created the folder 'OneDriveBackupFiles' on your desktop."
1113 }
1114 }
1115 Start-Sleep 1
1116 Move-Item -Path "$env:USERPROFILE\OneDrive\*" -Destination "$env:USERPROFILE\Desktop\OneDriveBackupFiles" -Force
1117 Write-Host "Successfully moved all files/folders from your OneDrive folder to the folder 'OneDriveBackupFiles' on your desktop."
1118 Start-Sleep 1
1119 Write-Host "Proceeding with the removal of OneDrive."
1120 Start-Sleep 1
1121 }
1122 Else {
1123 Write-Host "Either the OneDrive folder does not exist or there are no files to be found in the folder. Proceeding with removal of OneDrive."
1124 Start-Sleep 1
1125 Write-Host "Enabling the Group Policy 'Prevent the usage of OneDrive for File Storage'."
1126 $OneDriveKey = 'HKLM:Software\Policies\Microsoft\Windows\OneDrive'
1127 If (!(Test-Path $OneDriveKey)) {
1128 Mkdir $OneDriveKey
1129 Set-ItemProperty $OneDriveKey -Name OneDrive -Value DisableFileSyncNGSC
1130 }
1131 Set-ItemProperty $OneDriveKey -Name OneDrive -Value DisableFileSyncNGSC
1132 }
1133
1134 Write-Host "Uninstalling OneDrive. Please wait..."
1135
1136 New-PSDrive HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT
1137 $onedrive = "$env:SYSTEMROOT\SysWOW64\OneDriveSetup.exe"
1138 $ExplorerReg1 = "HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}"
1139 $ExplorerReg2 = "HKCR:\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}"
1140 Stop-Process -Name "OneDrive*"
1141 Start-Sleep 2
1142 If (!(Test-Path $onedrive)) {
1143 $onedrive = "$env:SYSTEMROOT\System32\OneDriveSetup.exe"
1144 }
1145 Start-Process $onedrive "/uninstall" -NoNewWindow -Wait
1146 Start-Sleep 2
1147 Write-Host "Stopping explorer"
1148 Start-Sleep 1
1149 taskkill.exe /F /IM explorer.exe
1150 Start-Sleep 3
1151 Write-Host "Removing leftover files"
1152 If (Test-Path "$env:USERPROFILE\OneDrive") {
1153 Remove-Item "$env:USERPROFILE\OneDrive" -Force -Recurse
1154 }
1155 If (Test-Path "$env:LOCALAPPDATA\Microsoft\OneDrive") {
1156 Remove-Item "$env:LOCALAPPDATA\Microsoft\OneDrive" -Force -Recurse
1157 }
1158 If (Test-Path "$env:PROGRAMDATA\Microsoft OneDrive") {
1159 Remove-Item "$env:PROGRAMDATA\Microsoft OneDrive" -Force -Recurse
1160 }
1161 If (Test-Path "$env:SYSTEMDRIVE\OneDriveTemp") {
1162 Remove-Item "$env:SYSTEMDRIVE\OneDriveTemp" -Force -Recurse
1163 }
1164 Write-Host "Removing OneDrive from windows explorer"
1165 If (!(Test-Path $ExplorerReg1)) {
1166 New-Item $ExplorerReg1
1167 }
1168 Set-ItemProperty $ExplorerReg1 System.IsPinnedToNameSpaceTree -Value 0
1169 If (!(Test-Path $ExplorerReg2)) {
1170 New-Item $ExplorerReg2
1171 }
1172 Set-ItemProperty $ExplorerReg2 System.IsPinnedToNameSpaceTree -Value 0
1173 Write-Host "Restarting Explorer that was shut down before."
1174 Start-Process explorer.exe -NoNewWindow
1175 Write-Host "OneDrive has been successfully uninstalled!"
1176 $TextBox2.Text += "OneDrive has been successfully uninstalled!" + "`r`n"
1177
1178 Remove-item env:OneDrive
1179
1180 })
1181
1182
1183
1184
1185 $spotify_Install.Add_Click({
1186
1187 iex "& { $(iwr -useb 'https://raw.githubusercontent.com/SpotX-Official/spotx-official.github.io/main/run.ps1') } -confirm_uninstall_ms_spoti -confirm_spoti_recomended_over -podcasts_off -block_update_on -new_theme -adsections_off -lyrics_stat spotify"
1188
1189 })
1190
1191
1192$xamlForm.ShowDialog() | out-null
1193