Created
January 15, 2018 05:40
-
-
Save theinventor/f2312965e79678323882674603905d4d to your computer and use it in GitHub Desktop.
Download Syncro agent and install it from command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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