[ about ]
[ misc ]
[ wishlist ]
[ projects ]
[ resume ]
[ stats ]
Silently Install Cisco IP CommunicatorPosted under Work Stuff on Tuesday, December 3, 2013 @ 3:32:02 PM
Show Previous Article Show Next Article
my company uses ip communicator pretty extensively for our staff that travel internationally to help cut down on telecom costs. cellular roaming can cost $1.50-2.50 per minute and is the single biggest cost on our wireless bill during months when we're heavily deployed overseas.
we'd been manually installing cipc because i hadn't found a working method to do an unattended install in the couple hours i spent trying to make it work. eventually i got tired of doing manual installs and put in the time to make silent installs work, and figured i'd post what i found here so someone else might be able to make use of it.
the cipc msi installer has some cli switches that facilitate this, namely you can use the /qb switch to do a silent install and you can also use the devicename and tftp1 options to set the devicename and tftp server address, respectively.
by default, cipc uses the mac address of a network adapter to create the device name, but that makes no sense to me because that means cipc only works when the pc is connected using that nic. so for example if the system is hardwired when the devicename is generated and then later on the user is on wifi and wants to use cipc, no dice. we use hardcoded device names to get around this problem, and we just make the device name the same as the pc name because those are already unique and tracked and it makes it easy to associate the device name with a specific person with a dn.
the switches alone will get you most of the way there, the problem we had is that during the installation windows would throw up a security prompt for the user to confirm the cisco driver installation. the way around that is to preload the cisco code signing certificates on the local pc, which will cause the driver to be installed without a security prompt.
to get the certificate(s) you need to add, on a pc with cipc already installed, open certmgr.msc and navigate to trusted publishers > certificates and you should see one or more certificates listed here that are issued to cisco systems, inc. right-click on each certificate and select export. export the certificate as base-64 encoded x.509 and save those exported certificates somewhere where the systems running the unattended install process will be able to access them.
now, for your unattended install process, you can use a simple batch file.
step 1, preload the certificates. if you exported more than one certificate in the step above, you'll need to run the command below for each certificate:
start /wait serverinstallciscocertmgr.exe -add serverinstallciscocisco1.cer -c -s -r localmachine trustedpublisher
step 2, install cipc using the /qb switch to make the install silent and the devicename and tftp1 switches to specify those values:
start /wait msiexec /norestart /i serverinstallciscociscoipcommunicatorsetup.msi /qb devicename="%computername%" tftp1="10.1.2.100"
step 3, the registry updates below may not be necessary. i got the process working and didn't try taking these out because i didn't want to spend anymore time on this or tempt fate and break it. these handle setting the devicename.
start /wait reg add "hkey_current_usersoftwarecisco systems, inc.communicator" /f /v hostname /t reg_sz /d %computername%
start /wait reg add "hkey_local_machinesoftwarewow6432nodecisco systems, inc.communicator" /f /v hostname /t reg_sz /d %computername%
start /wait reg add "hkey_current_usersoftwarecisco systems, inc.communicator" /f /v alternatedevicename /t reg_dword /d 00000001
start /wait reg add "hkey_local_machinesoftwarewow6432nodecisco systems, inc.communicator" /f /v alternatetftp /t reg_dword /d 00000001
start /wait reg add "hkey_local_machinesoftwarewow6432nodecisco systems, inc.communicator" /f /v alternatedevicename /t reg_dword /d 00000001