PowerShell auto-updater script for Devolutions Gateway
This PowerShell script is meant to be registered as a scheduled task that runs once a day to check for updates, download and then install them. This script is especially useful when using multiple gateways as it saves a lot of time.
Installing
Download the auto-updater PowerShell script.
Open an elevated PowerShell terminal.
Move to the directory containing the GatewayUpdater.ps1 script.
Run it using the
installparameter.
PS > .\GatewayUpdater.ps1 install
TaskPath TaskName State
-------- -------- -----
\ Devolutions Gateway Updater Ready
Updater script installed to 'C:\Program Files\Devolutions\Gateway Updater\GatewayUpdater.ps1' and registered as 'Devolutions Gateway Updater' scheduled taskRunning
By default, the scheduled task will run every day at 3AM. It can also be manually triggered by using the following command: & schtasks.exe /Run /TN "Devolutions Gateway Updater"
The status of the scheduled task can then be queried:
PS > schtasks.exe /Query /TN "Devolutions Gateway Updater"
Folder: \
TaskName Next Run Time Status
======================================== ====================== ===============
Devolutions Gateway Updater Date 3:00:00 AM ReadyUninstalling
Open a PowerShell terminal.
Run the GatewayUpdater.ps1 script with the
uninstallparameter.
Last updated
Was this helpful?