Created
June 26, 2023 23:23
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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