2020-10-27 23:26:39 +01:00
|
|
|
Write-Output "Attempting to launch script with admin privileges..."
|
|
|
|
|
|
2020-11-30 16:29:11 +01:00
|
|
|
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Unrestricted -File ""$PSScriptRoot\Win10Debloat.ps1""' -Verb RunAs}";
|
2020-11-07 02:57:38 +01:00
|
|
|
|
|
|
|
|
<#------------------------------------------------------------------------------------------------------------------------------------------------>
|
2022-08-29 16:14:36 +02:00
|
|
|
It's possible to tweak the behaviour of the script by running the script with one or more of the arguments in the ArgumentList as shown below.
|
|
|
|
|
This allows you to tailor the behaviour of the script to your needs without any user input during runtime, making it quicker and easier to deploy.
|
2020-11-07 02:57:38 +01:00
|
|
|
|
|
|
|
|
The example below configures the script to only remove apps and disable bing in windows search:
|
|
|
|
|
|
|
|
|
|
PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile
|
|
|
|
|
-ExecutionPolicy Unrestricted
|
|
|
|
|
-File ""$PSScriptRoot\Win10Debloat.ps1""
|
|
|
|
|
-RemoveApps
|
2022-09-08 16:38:14 +02:00
|
|
|
-DisableBing'
|
2020-11-07 02:57:38 +01:00
|
|
|
-Verb RunAs}";
|
|
|
|
|
|
|
|
|
|
Supported Arguments:
|
2022-08-29 16:14:36 +02:00
|
|
|
-RunDefaults | Run the script with windows 10 default settings.
|
|
|
|
|
-RunWin11Defaults | Run the script with windows 11 default settings.
|
|
|
|
|
-RemoveApps | Remove all bloatware apps from the list found in README.md.
|
|
|
|
|
-DisableTelemetry | Disable telemetry, diagnostic data & targeted ads.
|
2022-09-08 16:38:14 +02:00
|
|
|
-DisableBing | Disable bing & cortana in windows search.
|
2022-08-29 16:14:36 +02:00
|
|
|
-DisableLockscreenTips | Disable tips & tricks on the lockscreen.
|
2022-08-29 19:26:13 +02:00
|
|
|
-DisableWindowsSuggestions | Disable tips, tricks and suggestions in the startmenu and settings, and ads in windows explorer.
|
|
|
|
|
-DisableOnedrive | Hide the onedrive folder in the windows explorer sidepanel.
|
|
|
|
|
-DisableChat | Hide the chat icon on the taskbar.
|
|
|
|
|
-DisableWidgets | Hide the widget icon on the taskbar.
|
2022-08-29 16:14:36 +02:00
|
|
|
-Disable3dObjects | Hide the 3D objects folder under 'This pc' in windows explorer.
|
|
|
|
|
-DisableMusic | Hide the music folder under 'This pc' in windows explorer.
|
2020-11-07 02:57:38 +01:00
|
|
|
-DisableIncludeInLibrary | Disable the 'Include in library' option in the context menu.
|
|
|
|
|
-DisableGiveAccessTo | Disable the 'Give access to' option in the context menu.
|
|
|
|
|
-DisableShare | Disable the 'Share' option in the context menu.
|
2020-11-30 16:29:11 +01:00
|
|
|
<------------------------------------------------------------------------------------------------------------------------------------------------#>
|