lywellynL
Goreloβ€’5w agoβ€’
3 replies
lywellyn

ControlD install CLI

Anyone else figured out how to best script installs for ControlD? With Ninja, I just dumped the script ControlD gives you (ex with items x'd out for privacy: (Invoke-WebRequest -Uri 'https://x.x.x.x/dl/ps1' -UseBasicParsing).Content | Set-Content "$env:TEMPctrld_install.ps1"; Invoke-Expression "& '$env:TEMPctrld_install.ps1' 'xxxxxxxxxx' 'forced'") and it ran fine. When I attempted to do that inside the Gorelo CLI under Powershell, it failed. I tried adding "Set-ExecutionPolicy Bypass -Scope Process -Force;" to the beginning as I often had to in order to run stuff from the CLI in Ninja, but got the same result.
For background, I'm installing their agent this way with a separate, different key each time. I could probably create a script with a variable and only input the variable each time, but since it gives me the code right there, I felt is was simpler to just run it in CLI.
Was this page helpful?