diff --git a/beszel/site/src/components/add-system.tsx b/beszel/site/src/components/add-system.tsx index e52b0f9..09e6fce 100644 --- a/beszel/site/src/components/add-system.tsx +++ b/beszel/site/src/components/add-system.tsx @@ -86,7 +86,7 @@ function copyLinuxCommand(port = "45876", publicKey: string, brew = false) { function copyWindowsCommand(port = "45876", publicKey: string) { copyToClipboard( - `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser; & iwr -useb https://get.beszel.dev -OutFile "$env:TEMP\\install-agent.ps1"; & "$env:TEMP\\install-agent.ps1" -Key "${publicKey}" -Port ${port}` + `& iwr -useb https://get.beszel.dev -OutFile "$env:TEMP\\install-agent.ps1"; & Powershell -ExecutionPolicy Bypass -File "$env:TEMP\\install-agent.ps1" -Key "${publicKey}" -Port ${port}` ) }