From e29f111527b3b0dc7d3dd7414699c210ab878786 Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Mon, 30 Nov 2020 16:29:11 +0100 Subject: [PATCH] Update Run.ps1 Fixed issue with Run.ps1 not properly launching the script --- README.md | 2 +- Run.ps1 | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3333987..2b4950b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Win10Debloat -Win10Debloat is a simple powershell script that allows you to remove most pre-installed windows 10 apps, disable bing in windows search, disable tips and suggestions across the OS (such as the lockscreen, startmenu and settings) and declutter the windows explorer by hiding certain folders (such as 3D objects) from the sidebar aswell as disabling certain context menu options that a regular user would (almost) never use. +Win10Debloat is a simple powershell script that allows you to remove most pre-installed windows 10 apps, disable bing in windows search, disable tips and suggestions across the OS (such as the lockscreen, startmenu and settings) and declutter the windows explorer by hiding certain folders (such as 3D objects) from the sidebar aswell as disabling certain context menu options that a regular user would likely never use. You can pick and choose which modifications you want the script to make, but the default settings should be fine for most people. All of the changes can be reverted using the registry files that are included in the 'Regfiles' folder, and all of the apps that are removed by default can easily be reinstalled from the microsoft store. diff --git a/Run.ps1 b/Run.ps1 index de5a501..0d86690 100644 --- a/Run.ps1 +++ b/Run.ps1 @@ -1,9 +1,6 @@ Write-Output "Attempting to launch script with admin privileges..." -PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile - -ExecutionPolicy Unrestricted - -File ""$PSScriptRoot\Win10Debloat.ps1""' - -Verb RunAs}"; +PowerShell -NoProfile -ExecutionPolicy Unrestricted -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Unrestricted -File ""$PSScriptRoot\Win10Debloat.ps1""' -Verb RunAs}"; <#------------------------------------------------------------------------------------------------------------------------------------------------> It's possible to tweak the behaviour of the script by adding arguments to the ArgumentList, a full list of arguments is shown below. @@ -30,4 +27,4 @@ Supported Arguments: -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. -<------------------------------------------------------------------------------------------------------------------------------------------------#> \ No newline at end of file +<------------------------------------------------------------------------------------------------------------------------------------------------#>