Commit Graph

340 Commits

Author SHA1 Message Date
Damian
f4bc4545ab Added Cancel to the GUI
Added cancel button to stop the script completely.
2018-06-03 11:38:23 -04:00
Damian
4c3dd2003d Admin check and GUI prompts
Added an admin check to see if the script is running with admin right, if it isn't then it'll close and reopen with admin right and continue on.

Also added a GUI to replace the need for "read-host" to get a response from USER
2018-06-03 10:20:16 -04:00
Richard Newton
deaa99c664
Added xbox appxpackages/appxprovisionedpackages to whitelist 2018-05-21 19:04:21 -07:00
Richard Newton
c6da13aa0f
Added information to How To Run 2018-04-13 23:57:30 -07:00
Richard Newton
cc4633c8be
Added missing function FixWhitelistedApps to be called correctly
Added missing function FixWhitelistedApps to be called correctly on line 235
2018-04-05 19:05:56 -07:00
Richard Newton
1adfd2bf83
Added information regarding when this script should be ran 2018-04-05 19:02:59 -07:00
Richard Newton
f4da442ca6
Fixed Parameter switches 2018-03-15 21:25:00 -07:00
Richard Newton
b6e5b716f7
Fixed the old name of Windows10SilentDebloater.ps1
I changed the name of the Windows10SilentDebloater.ps1 in the README to Windows10SysPrepDebloater.ps1
2018-03-06 20:38:14 -08:00
Richard Newton
fad7533973
Removed Interactive/Noninteractive section 2018-03-06 20:36:27 -08:00
Richard Newton
c5214cfb2c
Removed switch containing interactive/noninteractive
I removed the switch containing interactive/noninteractive choices since the noninteractive option only cut down the amount of interactive prompts by 2, and I saw no value with keeping it. I also fixed the formatting of the code and it should be a bit more presentable now.
2018-03-06 20:31:11 -08:00
Richard Newton
f30ac403de
Added CanonicalGroupLimited.UbuntuonWindows to whitelisted apps 2018-03-02 21:09:57 -08:00
Richard Newton
173d106ef1
Added CanonicalGroupLimited.UbuntuonWindows to whitelisted apps 2018-03-02 21:09:36 -08:00
Richard Newton
78e439b703
Added -ErrorAction SilentlyContinue to lines 165-170 2018-03-02 21:00:47 -08:00
Richard Newton
f16cc2705f
Added -ErrorAction SilentlyContinue to lines 288-293 2018-03-02 21:00:14 -08:00
Richard Newton
9c7d563fcf
Changed the name of the .ps1 used in #Switch Parameters 2018-02-23 05:58:53 -08:00
Richard Newton
fd4ecb03fd
Renamed Windows10SilentDebloater to Windows10SysPrepDebloater
I renamed Windows10SilentDebloater to Windows10SysPrepDebloater to better show what the intended purpose of this version of the script is for.
2018-02-21 13:33:48 -08:00
Richard Newton
56d424df86
Added error handling parameter on line 16
I added error handling on line 16; -ErrorAction SilentlyContinue in order to suppress any details in the MDT logs.
2018-02-21 13:31:23 -08:00
Richard Newton
7302794884
Added comments to Start-Debloat function and FixWhitelistedApps function 2018-02-19 08:01:50 -08:00
Richard Newton
3f997bf3f2
Added comments to Start-Debloat function and FixWhitelistedApps function 2018-02-19 07:59:58 -08:00
Richard Newton
da04191367
Added Abulgatz to #Credit section 2018-02-19 07:54:20 -08:00
Richard Newton
8e4d165041
Added new function FixWhitelistedApps
I added a new Function called FixWhitelistedApps, which will check to see if any of the Whitelisted Apps were removed, and if so it should re-add them.

I then changed the code in the function Start-Debloat, given to me by Reddit user /u/GavinEke.
2018-02-19 07:53:37 -08:00
Richard Newton
afa87e6947
Added Reddit user to #Credit section 2018-02-19 07:49:34 -08:00
Richard Newton
13a0d7c03e
Changed Start-Debloat Function Code, new function
I changed the Start-Debloat Function's code to use [regex] as explained in the following link: https://www.reddit.com/r/PowerShell/comments/7xzwah/4_whitelisted_apps_in_my_script_are_being_removed/\

Thanks to Reddit user /u/GavinEke for the help.

I added a new Function called FixWhitelistedApps which will run and check to see if the Whitelisted apps in the Start-Debloat function were removed, and if so it should bring them back.
2018-02-19 07:48:42 -08:00
Richard Newton
acda2ee106
Fixed whitelisted apps being removed
I fixed the issue where the whitelisted apps were being removed.

I then changed the conditional operator on lines 22-25, and lines 36-39, from -notlike to -notcontains. I also removed the asterisks from the AppXPackage/AppXProvisionedPackage names which results in the whitelisting working appropriately. The whitelisted apps are no longer being removed.
2018-02-16 20:02:50 -08:00
Richard Newton
542619fa87
Fixed whitelisted apps being removed
I fixed an issue where the whitelisted apps; Paint3D, Calculator, Store, and Photos were being removed.

I changed the conditional operator from -notlike to -notcontains on lines 22-25, and lines 30-33. Then, I removed the asterisks from each AppXPackage/AppXProvisionedPackage name. 

The issue of the whitelisted apps being removed should no longer be the case.
2018-02-16 19:59:14 -08:00
Richard Newton
3f628a709c
Changed $_.packagename to $_.name on lines 24 and 25
Changed $_.packagename to $_.name on lines 24 and 25
2018-01-13 16:24:26 -08:00
Richard Newton
561b882c1f
Added information to #How To Run and created #Switch Parameters
Added information regarding the different switches available for the silent version of the Windows10Debloater script and what they do.
2017-12-28 21:10:17 -08:00
Richard Newton
12fe2f5aef
Added $SysPrep switch parameter and function
I added a $SysPrep switch parameter and function on lines 7 - 17. This will run the following command: get-appxpackage | remove-appxpackage. This is required in order to be used successfully with SysPrep.

I also added a $StopEdgePDF parameter, for those who do not wish to stop Edge from being used as the default PDF viewer, or for those who worry about unintended consequences (not being able to potentially choose Edge without removing the specified registry keys).

You can now run the script with the switch parameter -SysPrep, along with -Debloat, and -StopEdgePDF.
2017-12-28 20:59:05 -08:00
Richard Newton
262777bb66
Changed the $_.name on lines 24, 25, 32, and 33
I changed the $_.name on lines 24, 25, 32, and 33 to $_.packagename since the whitelisted apps "Photos" and "Store" were still being removed.

Now they shouldn't be removed.
2017-12-28 20:33:56 -08:00
Richard Newton
d02dfa39ed
Changed $_.name on lines 24, 25, 32 and 33.
I changed the $_.name on lines 24, 25, 32, and 33 to $_.packagename since the whitelisted apps "Photos" and "Store" were still being removed.

Now they shouldn't be removed.
2017-12-28 20:33:12 -08:00
Richard Newton
f1e1187ba9
Changed Microsoft.FreshPaint to Paint3D
On lines 16 and 24 I changed Microsoft.FreshPaint to Microsoft.Paint3D
2017-12-28 20:26:09 -08:00
Richard Newton
3555fec619
Changed Microsoft.FreshPaint to Paint3d
On lines 22 and 30 I changed the name of the app/package from Microsoft.FreshPaint to Paint3D
2017-12-28 20:25:14 -08:00
Richard Newton
ac34625cc4
Fixed Revert /Noninteractive switch statement
On line 410 if you chose to run Interactively and wanted to Revert changes it would tell you that the Revert switch statement was not recognized. This is now fixed.

On line 450 if you chose to use the Noninteractive method it wasn't recognized. This is now fixed as well.
2017-12-28 20:23:46 -08:00
Richard Newton
b7b8a1d082
Removed "Store" from the section "Bloatware that is removed" 2017-12-13 18:46:17 -08:00
Richard Newton
e56a1297d4
Added logging, new Noninteractive switch, other code
Upon launching the script you will see that the script will create a folder called Windows10Debloater which it will use to store logs. If it detects that it has already been created previously then it will tell you that the folder already exists. The path will be: C:\Windows10Debloater

I added logging. It will record a transcript of your session and then output the transcript file into C:\Windows10Debloater. These can be used for troubleshooting or if you get error messages.

I added a Noninteractive switch so that instead of you choosing between "Interactive" and "Silent" it will only ask you 1 question, instead of the "Interactive" one asking you a couple of questions. 

The "Interactive" switch doesn't automatically reboot your machine.
2017-12-11 20:23:24 -08:00
Richard Newton
f26985b9ca
Added # Interactive and Noninteractive Switches section 2017-12-11 18:40:48 -08:00
Richard Newton
2e54b7b518
README.md 2017-12-11 18:07:31 -08:00
Richard Newton
4acec8edf8
Windows10DebloaterSilent 2017-12-11 17:38:03 -08:00
Richard Newton
4c152f8d70
Windows10Debloater 2017-12-11 17:37:16 -08:00
Richard Newton
6b2bc996f1
Initial commit 2017-12-11 17:35:59 -08:00