-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathWin10AppRemove.ps1
209 lines (161 loc) · 7.42 KB
/
Win10AppRemove.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
##################################################################################
# Windows 10 Apps Remover / Debloater Changelog 1.34
# Powershell Script
# Description:
# Removes Windows 10 mandatory apps which can't be deinstalled via startmenu.
# Debloating the preinstalled shit nobody needs :-)
#
# Please read the README.md !
##################################################################################
##################################################################################
# functions start(do not change)
function reboot {
$rebootanswer = Read-Host -Prompt "Should the system reboot? (yes/no)"
If ($rebootanswer -eq "yes") {
write-host "Rebooting now..."
Restart-Computer
}
elseif ($rebootanswer -eq "no") {
write-host "`n"
write-host "Thanks for using the script, have a nice day."
}
else {
write-host "`n"
write-host "I didn't get you, sorry. Try again please."
reboot
}
}
# admin rights check
function checkadmin {
$user = [Security.Principal.WindowsIdentity]::GetCurrent();
$checkresult = (New-Object Security.Principal.WindowsPrincipal $user).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)
if ($checkresult -eq $False) {
write-host "---------------------------------------------------------------------"
write-host "No administrator-rights found, start as administrator!!!"
write-host "---------------------------------------------------------------------"
PAUSE
exit
}
}
# functions end
##################################################################################
# global variables
# suppress errormessages from removing apps because clear-host didn't work....
# Some apps will return errors messages if they are already deinstalled
$ErrorActionPreference = "SilentlyContinue"
checkadmin
clear-host
write-host "---------------------------------------------------------------------"
write-host " Windows 10 Apps Remover "
write-host "---------------------------------------------------------------------"
write-host "`n"
write-host " Please make sure that only apps you would like to remove
are included in the script."
write-host "`n"
write-host " Apps which should stay installed have to be commented out"
write-host " like this: #get-appxpackage -allusers *calculator* (...)"
write-host "`n"
write-host " just add # before the command to keep the app :-)"
write-host "`n"
write-host " !!!!! Check the script before executing !!!!!"
write-host "`n"
write-host " Hit return to start! - cancel with STRG+C"
write-host "`n"
write-host "---------------------------------------------------------------------"
PAUSE
clear-host
PAUSE
###############################################################################
# APP LIST #
# #
# All apps which aren't commented out will be removed / deinstalled #
###############################################################################
#To uninstall 3D Builder:
get-appxpackage -allusers *3dbuilder* | remove-appxpackage
#To uninstall Alarms & Clock:
get-appxpackage -allusers *alarms* | remove-appxpackage
#To uninstall App Connector:
#get-appxpackage -allusers *appconnector* | remove-appxpackage
#To uninstall App Installer:
#get-appxpackage -allusers *appinstaller* | remove-appxpackage
#To uninstall Calendar and Mail apps together:
get-appxpackage -allusers *communicationsapps* | remove-appxpackage
#To uninstall Calculator:
#get-appxpackage -allusers *calculator* | remove-appxpackage
#To uninstall Camera:
#get-appxpackage -allusers *camera* | remove-appxpackage
#To uninstall Feedback Hub:
get-appxpackage -allusers *feedback* | remove-appxpackage
#To uninstall Get Office:
get-appxpackage -allusers *officehub* | remove-appxpackage
#To uninstall Get Started or Tips:
get-appxpackage -allusers *getstarted* | remove-appxpackage
#To uninstall Get Skype:
get-appxpackage -allusers *skypeapp* | remove-appxpackage
#To uninstall Groove Music:
get-appxpackage -allusers *zunemusic* | remove-appxpackage
#To uninstall Groove Music and Movies & TV apps together:
get-appxpackage -allusers *zune* | remove-appxpackage
#To uninstall Maps:
get-appxpackage -allusers *maps* | remove-appxpackage
#To uninstall Messaging and Skype Video apps together:
get-appxpackage -allusers *messaging* | remove-appxpackage
#To uninstall Microsoft Solitaire Collection:
get-appxpackage -allusers *solitaire* | remove-appxpackage
#To uninstall Microsoft Wallet:
get-appxpackage -allusers *wallet* | remove-appxpackage
#To uninstall Microsoft Wi-Fi:
get-appxpackage -allusers *connectivitystore* | remove-appxpackage
#To uninstall Money:
get-appxpackage -allusers *bingfinance* | remove-appxpackage
#To uninstall Money, News, Sports and Weather apps together (I like the weather app, you can remove news, sports, money and reinstall the weather app):
#get-appxpackage -allusers *bing* | remove-appxpackage
#To uninstall Movies & TV:
get-appxpackage -allusers *zunevideo* | remove-appxpackage
#To uninstall News:
get-appxpackage -allusers *bingnews* | remove-appxpackage
#To uninstall OneNote:
get-appxpackage -allusers *onenote* | remove-appxpackage
#To uninstall Paid Wi-Fi & Cellular:
get-appxpackage -allusers *oneconnect* | remove-appxpackage
#To uninstall Paint 3D:
get-appxpackage -allusers *mspaint* | remove-appxpackage
#To uninstall People:
get-appxpackage -allusers *people* | remove-appxpackage
#To uninstall Phone:
get-appxpackage -allusers *commsphone* | remove-appxpackage
#To uninstall Phone Companion:
get-appxpackage -allusers *windowsphone* | remove-appxpackage
#To uninstall Phone and Phone Companion apps together:
get-appxpackage -allusers *phone* | remove-appxpackage
#To uninstall Photos:
get-appxpackage -allusers *photos* | remove-appxpackage
#To uninstall Sports:
get-appxpackage -allusers *bingsports* | remove-appxpackage
#To uninstall Sticky Notes:
get-appxpackage -allusers *sticky* | remove-appxpackage
#To uninstall Sway:
get-appxpackage -allusers *sway* | remove-appxpackage
#To uninstall View 3D:
get-appxpackage -allusers *3dViewer* | remove-appxpackage
#To uninstall Voice Recorder:
#get-appxpackage -allusers *soundrecorder* | remove-appxpackage
#To uninstall Weather: (I like it :-) )
#get-appxpackage -allusers *bingweather* | remove-appxpackage
#To uninstall Get-Help App (kind of useless)
get-appxpackage -allusers *GetHelp* | remove-appxpackage
#To uninstall Windows Holographic:
get-appxpackage -allusers *holographic* | remove-appxpackage
#To Windows Camera
get-appxpackage -allusers *WindowsCamera* | remove-appxpackage
#To uninstall Windows Store: (DANGER - Don't remove, maybe you want to install apps? and it's needed for updates)
#########get-appxpackage -allusers *windowsstore* | remove-appxpackage
#To uninstall Xbox Apps (Don't deinstall if you would like to play XBOX Live apps like Forza 7):
get-appxpackage -allusers *xbox* | remove-appxpackage
clear-host
## The end ;)
write-host "--------------------------------------------------------------------"
write-host "Removing Apps completed."
write-host "\n"
write-host "Rebooting the OS is advised."
reboot