#Author: Daniel Mulroy #Company: GEM Software LTD #Script Purpose: The script stops the data sync service. Waits 10 seconds, The starts the software update service. The software update services updates the software remotely. #Copyright: This script was created and is supported by GEM Software Ltd. Changes to the script is prohibited. #Contact Details:Danny.Mulroy@gem-software.net if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit } Stop-service DataSyncService Start-Sleep -s 10 Start-service UpdateService