Cisco IP Communicator SCCM Package

Cisco IP Communicator has MSI file, but it needs command-line switches to finish the installation, otherwise it will prompt user to type in those information, and strangely enough, you have to be local admin to change any settings for Cisco IP Communicator.

Here is my batch script to do that:

REM         Cisco IP Communicator SCCM

REM         Ray Qiu

REM         Nov 18, 2016

 

REM   Detect current user by invoking explorer user

for /f “TOKENS=1,2,*” %%a in (‘tasklist /FI “IMAGENAME eq explorer.exe” /FO LIST /V’) do if /i “%%a %%b”==”User Name:” set _currdomain_user=%%c
for /f “TOKENS=1,2 DELIMS=\” %%a in (“%_currdomain_user%”) do set _currdomain=%%a & set _curruser=%%b

REM  Set current user variable
set id=CIPC%_curruser%

REM  Run installation

msiexec /i CiscoIPCommunicatorSetup.msi /qn /norestart FREEFORMDEVICENAME=%id% TFTP1=YourIP TFTP2=YourIP

 

If you want to find current user in future, you can use these same script:

for /f “TOKENS=1,2,*” %%a in (‘tasklist /FI “IMAGENAME eq explorer.exe” /FO LIST /V’) do if /i “%%a %%b”==”User Name:” set _currdomain_user=%%c
for /f “TOKENS=1,2 DELIMS=\” %%a in (“%_currdomain_user%”) do set _currdomain=%%a & set _curruser=%%b

 

1 thought on “Cisco IP Communicator SCCM Package”

Leave a Comment