Skip to content

Instantly share code, notes, and snippets.

@swablueme
Created March 2, 2020 06:43
Show Gist options
  • Save swablueme/d143076d051fc1196f86483c80556222 to your computer and use it in GitHub Desktop.
Save swablueme/d143076d051fc1196f86483c80556222 to your computer and use it in GitHub Desktop.
Starts/stops Citrix services
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