mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +00:00
Fix running script as user using the Quick Method
This commit is contained in:
9
Get.ps1
9
Get.ps1
@@ -84,7 +84,14 @@ Expand-Archive "$env:TEMP/win11debloat-temp.zip" "$env:TEMP/Win11Debloat"
|
|||||||
Remove-Item "$env:TEMP/win11debloat-temp.zip"
|
Remove-Item "$env:TEMP/win11debloat-temp.zip"
|
||||||
|
|
||||||
# Make list of arguments to pass on to the script
|
# Make list of arguments to pass on to the script
|
||||||
$arguments = $($PSBoundParameters.GetEnumerator() | ForEach-Object {"-$($_.Key)"})
|
$arguments = $($PSBoundParameters.GetEnumerator() | ForEach-Object {
|
||||||
|
if ($_.Value -eq $true) {
|
||||||
|
"-$($_.Key)"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
"-$($_.Key) ""$($_.Value)"""
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
Write-Output "> Running Win11Debloat..."
|
Write-Output "> Running Win11Debloat..."
|
||||||
|
|||||||
Reference in New Issue
Block a user