Skip to content

Instantly share code, notes, and snippets.

@theinventor
Created January 15, 2018 05:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save theinventor/f2312965e79678323882674603905d4d to your computer and use it in GitHub Desktop.
Save theinventor/f2312965e79678323882674603905d4d to your computer and use it in GitHub Desktop.
Download Syncro agent and install it from command line
# Download the installer
$source = "https://rmm.syncromsp.com/GetThisURLfromYourCustomerDetailPageAndPutItHere.exe"
$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