Update samy.ps1

This commit is contained in:
2026-01-12 11:28:41 -05:00
parent 0b06823d82
commit 46e051e0cf

View File

@@ -19,9 +19,11 @@ if ($ExecutionContext.SessionState.LanguageMode -ne 'FullLanguage' -or
if ($PSCommandPath) { if ($PSCommandPath) {
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$PSCommandPath" @argList powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$PSCommandPath" @argList
} else { } else {
$argString = ($argList | ForEach-Object { '"' + ($_ -replace '"','`"') + '"' }) -join ' ' # IMPORTANT: pass args AFTER -Command so they become $args in the downloaded script
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& { iwr 'https://samybeta.svstools.ca' -UseBasicParsing | iex } $argString" $bootstrap = "& { iwr 'https://samybeta.svstools.ca' -UseBasicParsing | iex }"
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command $bootstrap @argList
} }
exit exit
} }