Skip to content

Instantly share code, notes, and snippets.

@asheroto
Created June 26, 2023 23:23
Show Gist options
  • Save asheroto/a47bdfdfa3ab8f3dd59df7c0e97f32f4 to your computer and use it in GitHub Desktop.
Save asheroto/a47bdfdfa3ab8f3dd59df7c0e97f32f4 to your computer and use it in GitHub Desktop.
Trigger Webroot (WRSA.exe) to poll the server for updates or policy changes.
@echo off
:: Relaunch script as admin if needed
NET FILE > NUL 2>&1 || POWERSHELL -ex Unrestricted -Command "Start-Process -Verb RunAs -FilePath '%ComSpec%' -ArgumentList '/c \"%~fnx0\" %*'" && EXIT /b
:: Code
echo.
if exist "C:\Program Files (x86)\Webroot\WRSA.exe" "C:\Program Files (x86)\Webroot\WRSA.exe" -poll & echo POLLED: "C:\Program Files (x86)\Webroot\WRSA.exe"
if exist "C:\Program Files\Webroot\WRSA.exe" "C:\Program Files\Webroot\WRSA.exe" -poll & echo POLLED: "C:\Program Files\Webroot\WRSA.exe"
echo.
timeout /t 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment