Zur Installation für die AV-Lösung von GData über die River ist normalerweise nur die Zuteilung einer Policy notwendig. Es kommt aber vor, dass die beiden Pakete, die dabei heruntergeladen und installiert werden müssen, nicht auf den ausgewählten Geräten ankommt. ‘GDataGateway’ ist die Komponente, über die die River mit dem ‘GData Security Client’ kommuniziert.
Der Grund dafür ist, dass der Download nicht in einer bestimmten Zeitspanne abgeschlossen werden kann. Das liegt oft an nicht so performanten Internetanbindungen (zu wenig Bandbreite führt zu langen Downloads, die irgendwann abgebrochen werden).
Deshalb haben wir Powershell-Skripte geschrieben, die als Workaround dienen können, um die GData Komponenten doch installieren zu können. Über die Policy werden dann danach die entsprechenden Konfigurationen über das ‘GDataGateway’ an den ‘GData Security Client’ übermittelt.
Empfehlung: Bestücken Sie immer zuerst den Sitemaster des jeweiligen Standortes, da im weiteren Verlauf die Clients diesen als Erstes nach den GData Modules befragen werden, bevor sie die 400 MB selbst downloaden.
Hinweis: Eventuell gibt es Schwierigkeiten beim Kopieren der Skripte mit den beiden ” “. Bitte nur kopieren, was sich innerhalb der beiden <snip>-Tags befindet.
<snip>
# RMM Agent Folders $agent_path = “C:\Program Files (x86)\Riverbird\Agents”
# GDataGateway Version $gw_version = “1.1.31.0” $gw_file = “$gw_version.zip”
# Source Path and File $source_path = “https://packages.riverbird.de/monitoring/plugins/GDataGateway/versions” $source_file = “$source_path/$gw_file”
# Function to generate Message in Log function log_Output {
Param (
$output
)
# Current date $date = (Get-Date -format “yyyy-MM-dd_HH-mm-ss”) $ldate = (Get-Date -format “yyyy-MM-dd_HH-mm”)
# RMM Agent Log $log_file = “C:\Temp\GDataGateway_v{0}-{1}.log” -f $gw_version, $ldate
# Format a log message $message = ‘{0}: {1}’ -f $date, $($output) $message = $message | Out-File $log_file -Append return $message
}
# Function to get the version of the running RMM Agent UI function get_RMM.Agent_UI_Version {
# RMM Agent UI $agent_ui = “RMM.Agent.UI”
# Return RMM Agent UI version $result = (Get-Process $agent_ui).FileVersion $result = $result.ToString().Split(‘+’)[0].Trim() return $result
$agent_ui = get_RMM.Agent_UI_Version $gw_path = “$agent_path\$agent_ui\plugins\GDataGateway”
# Destination File $destination_file = “$gw_path\$gw_file”
function Download {
# Download GDataGateway (~ 100 MB) if (Test-Path -Path $gw_path -PathType Container) {
cd $gw_path ; Invoke-WebRequest $source_file -OutFile $destination_file
$message = “Download successful: {0}” -f $destination_file
# Log message to a protocol log_Output $message
# Print message to stdout Write-Output $message
function Unzip {
# Unzip GDataGateway if (Test-Path -Path $destination_file -PathType Leaf) {
cd $gw_path ; Expand-Archive -Path $gw_file -DestinationPath $gw_path\$gw_version -Force
$message = “Unzip successful: {0}\{1}” -f $gw_path, $gw_version
# Main Download Unzip
exit 0
Voraussetzung: Windows muss mit seinen Updates auf den neuesten Stand sein. Andernfalls bricht die Installation ab. Da die Installation aber ‘silent’ ausgeführt wird, ist davon nichts zu sehen. Es landet einfach keine Installation auf dem Gerät.
# Temporary Download Folder $tmp_path = “C:\Temp\DocuBoard”
# GData Security Client $gsc_name = “Client_15.3.0.777”
# GData Security Extensions $gsc_zip = “$gsc_name.zip” $gsc_exe = “Setup.exe”
# Source Path and File $source_path = “https://packages.riverbird.de/Versions/GData” $source_file = “$source_path/$gsc_zip”
# Destination File $destination_file = “$tmp_path\$gsc_zip”
# Function to get the version of the GDATA Security Client function get_GSC_Version {
$result = $gsc_name.Substring($gsc_name.IndexOf(‘_’) + 1, 10) return $result
$gsc_ver = get_GSC_Version
# RMM Agent Log $log_file = “C:\Temp\GDataSecurityClient_v{0}-{1}.log” -f $gsc_ver, $ldate
# Download function Download {
# Download GData SecurityClient (~ 300 MB) if (Test-Path -Path $tmp_path -PathType Container) {
cd $tmp_path ; Invoke-WebRequest $source_file -OutFile $destination_file
$message = “Download successful: {0}” – f $destination_file
# Unzip function Unzip {
# Unzip GData SecurityClient if (Test-Path -Path $destination_file -PathType Leaf) {
cd $tmp_path ; Expand-Archive -Path $destination_file -DestinationPath $tmp_path\$gsc_name -Force
$message = “Unzip successful: {0}\{1}” -f $tmp_path, $gsc_name
# Install function Install {
# Install GData SecurityClient if (Test-Path -Path $tmp_path -PathType Container) {
$gsc_ver = get_GSC_Version $gsc_vname = “$gsc_ver”+“_”+“(14.07.2022)” $gsc_inst = “$tmp_path\$gsc_name\$gsc_vname”
cd $gsc_inst ; Start-Process $gsc_exe -ArgumentList ‘/_QuietInstallation=”true”‘, ‘/Hostname=”127.0.0.1″‘, ‘/_SkipAddToControlPanel=”false”‘
$message = “Installation successful started”
# Main Download Unzip Install
Hinweis: Mittlerweile ist der GDATA Security Client v15.3.0.777 auch über den Software-Pool der RiverSuite Inventory verfügbar. So kann die Aktualisierung einer älteren Version umgesetzt werden.
There is a fine line between creating greatness and accomplishing awesomeness. This time, we worked to prove that sky is not the limit.
PURCHASE NOW