Skip to content

Instantly share code, notes, and snippets.

@lox
lox / InstallBuildkiteAgent.ps1
Last active February 23, 2018 09:40
Install buildkite-agent in Windows as a Service
Param(
$agentVersion = "3.0-beta.39",
$agentToken = "xxx",
$agentTags = "windows",
$installDir = "C:\buildkite"
)
## Verify we are elevated
## https://superuser.com/questions/749243/detect-if-powershell-is-running-as-administrator