If you have SCCM or another similar tool, you can deploy the client using a PowerShell script. This approach optimizes the client rollout process through automation, guaranteeing a smoother and standardized deployment for your AppGate users.
Copy the below script to a file and customize the following variables accordingly:
$workingDir = "C:\Temp\"
You can change the location to any suitable place or keep it as it is, this is totally optional.
$installerURL = "Put_Client_Location_URL"
Specify your client location, whether it be a local or public address.
Ex: - “C:\Users\win10-esxi\Desktop\ AppGate-SDP-client.exe”
Ex: - https://bin.appgate-sdp.com/latest/windows/AppGate-SDP-client.exe
$SPAURL = 'Your_Client_Profile_URL'
Specify your full client profile.
Ex:-“appgate://mycontroller.company.com/eyjk2YTJiMvDKWFlMNhdGUifQ==”
# MIT License
# Copyright (c) 2025 AppGate Cybersecurity, Inc.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
### Download and install the SDP client on a machine.
#The below can be changed if you like.
$workingDir = "C:\Temp\"
#Don't change these they are used in the script.
$date = (Get-Date -Format yyyyMMdd)
$tmpdir = Test-Path $workingDir
if (-not $tmpdir) { New-Item -ItemType Directory -path $workingDir > $null }
$Global:SDPLogFile = $workingDir + "SDPInstallLog-" + $date + ".txt"
Function DownloadAppgate
{
#Update the installerURL, spaURL below.
$installerURL = "Put_Client_Location_URL"
$Global:SDPfilename = Split-Path $installerURL -Leaf
$Global:path = $workingDir + $SDPfilename
try
{
Write-Host "Downloading Client Installer."
(New-Object Net.WebClient).DownloadFile($installerURL, $path)
}
catch
{
$_.Exception.Message
Write-Host "Something went wrong Downloading Client Installer."
Write-Output "Something went wrong Downloading Client Installer $($_.Exception.Message) `n" | Out-File -Append $SDPLogFile
}
}
Function installAppgateFull
{
DownloadAppgate
try
{
#User SPA
$SPAURL = 'Your_Client_Profile_URL'
Write-Host "Installing Appgate Client."
# $flags = "/S /W /A"+" " + "P=`""+$SPAURL +"`""
# Write-Host $flags
Start-Process -Wait -FilePath $Path -ArgumentList "/S /A /W /G /P `"$SPAURL`""
Write-output "AppGate Install done. `n" | Out-File -Append $SDPLogFile
Cleanup
}
catch
{
$_.Exception.Message
Write-Host "Something went wrong Installing AppGate client."
Write-output "Something went wrong Installing AppGate client $($_.Exception.Message) `n" | Out-File -Append $SDPLogFile
}
}
Function Cleanup
{
Remove-Item $Path -Force
Write-Host "Setup was run and files deleted"
}
installAppgateFull
#End of SDP