Update Run.ps1

Fixed issue with Run.ps1 not properly launching the script
This commit is contained in:
Jeffrey
2020-11-30 16:29:11 +01:00
committed by Raphire
parent e0dada9120
commit e29f111527
2 changed files with 3 additions and 6 deletions

View File

@@ -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.
<------------------------------------------------------------------------------------------------------------------------------------------------#>
<------------------------------------------------------------------------------------------------------------------------------------------------#>