This article explains how to download the SQL Clone Agent service silently over the network.
You can use the following PowerShell commands, configured as necessary to achieve this:
$username = "<username that can access SQL Clone Server>"
$plaintextPassword = "<password for that user>"
$agentInstaller = "<some path>\SQLCloneSingleUserInstaller.exe"
$password = ConvertTo-SecureString $plaintextPassword -AsPlainText -Force
$credentials = New-Object System.Management.Automation.PSCredential ($username, $password)
Invoke-WebRequest -Uri "http://<server machine>:14145/download/agentinstaller" -OutFile $agentInstaller -Credential $credentials
To check $process.ExitCode to see if it was successful run:
$process = Start-Process -FilePath "$AgentInstaller" -ArgumentList ("-s", "SERVICEUSERNAME=$Username", "SERVICEPASSWORD=$Password") -Wait -PassThru
Related article: Installing an Agent to create an Image
Was this article helpful?
Articles in this section
- Changes to SQL Clone In-Product Updates and Notifications
- Failed to clean up temporary user/login. The database principal owns a database role and cannot be dropped
- What resources are required for involved machines using SQL Clone
- Where is the log out button in SQL Clone?
- Only one Rule Controller can be present if the SIMPLELOGINSUB is used
- SQL Clone Download URLs
- SQL Clone performance experiences delays while running simple queries
- Changing the default location of SQL Clone files
- SQL Clone throws "Could not get list of clones" error due to Newtonsoft.Json.JsonSerializationException
- Silent Install Clone Agent