Created
March 2, 2020 06:43
-
-
Save swablueme/d143076d051fc1196f86483c80556222 to your computer and use it in GitHub Desktop.
Starts/stops Citrix services
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
tasklist /FI "IMAGENAME eq wfcrun32.exe" 2>NUL | find /I /N "wfcrun32.exe">NUL | |
if %ERRORLEVEL%==0 ( | |
echo Program is running, killed | |
FOR %%A in ( | |
"wfcrun32.exe" | |
"SelfServicePlugin.exe" | |
"concentr.exe" | |
"redirector.exe" | |
"AuthManSvr.exe" | |
"Receiver.exe" | |
) DO taskkill /f /im %%A | |
) else ( | |
echo Program is not running, started | |
start /d "C:\Program Files (x86)\Citrix\ICA Client\SelfServicePlugin" SelfServicePlugin.exe | |
start /d "C:\Program Files (x86)\Citrix\ICA Client" redirector.exe | |
start /d "C:\Program Files (x86)\Citrix\ICA Client" concentr.exe | |
) | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment