mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 11:06:18 +00:00
Update Run.ps1
Fixed issue with Run.ps1 not properly launching the script
This commit is contained in:
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