Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Download Syncro agent and install it from command line
# Download the installer
$source = ""
$destination = "C:\temp\syncro-installer.exe"
# Check if Invoke-Webrequest exists otherwise execute WebClient
if (Get-Command 'Invoke-Webrequest'){
Invoke-WebRequest $source -OutFile $destination
} else {
$WebClient = New-Object System.Net.WebClient
$webclient.DownloadFile($source, $destination)
# Start the installation
Start-Process -FilePath "C:\temp\syncro-installer.exe" -ArgumentList "--console true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment