mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +00:00
Update Run.ps1
Fixed issue with Run.ps1 not properly launching the script
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
7
Run.ps1
7
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.
|
||||
<------------------------------------------------------------------------------------------------------------------------------------------------#>
|
||||
<------------------------------------------------------------------------------------------------------------------------------------------------#>
|
||||
|
||||
Reference in New Issue
Block a user