What you will need is the DHCPUtil.exe and the DHCPConfigScript.bat (both found at C:\Program Files\Common Files\Microsoft Lync Server 2010 or C:\Program Files\Common Files\Microsoft Lync Server 2013)
I would recommend copying these two files to a PC that is being serviced by the DHCP Server that needs to be configured.
From the cmd run (be sure to use an account that is permitted to modify DHCP)
DHCPUtil -SipServer FEPool01.lynclab.co.nz -WebServer FEPool01.lynclab.co.nz
#Collects the info required to populate Scope Options 43 and 120
DHCPUtil -SipServer FEPool01.lynclab.co.nz -WebServer FEPool01.lynclab.co.nz -RunConfigScript
#Configures the Scope Options using NETSH
DHCPUtil -emulateclient
#Testing – Please remember to wait a few minutes to allow for these options to “kick in”
NOTE
I have seen this script run too fast for the server to keep up, options running too fast consecutively.
I this case I have either run the .bat file manually or added pauses by adding 30 seconds in between the command lines. My edited version of the DHCPConfigScript.bat..
netsh dhcp server delete optionvalue 120
netsh dhcp server delete optiondef 120
sleep 20
netsh dhcp server delete class MSUCClient
if /i %1 EQU Cleanup goto :EOF
sleep 20
netsh dhcp server add optiondef 120 UCSipServer Binary 0 comment=”Sip Server Fqdn”
sleep 10
netsh dhcp server set optionvalue 120 Binary %3
sleep 20
netsh dhcp server add class MSUCClient “UC Vendor Class Id” “%2” 1
sleep 20
netsh dhcp server add optiondef 1 UCIdentifier Binary 0 Vendor=MSUCClient comment=”UC Identifier”
sleep 10
netsh dhcp server set optionvalue 1 Binary vendor=MSUCClient %4
sleep 10
netsh dhcp server add optiondef 2 URLScheme Binary 0 Vendor=MSUCClient comment=”URL Scheme”
sleep 10
netsh dhcp server set optionvalue 2 Binary vendor=MSUCClient %5
sleep 10
netsh dhcp server add optiondef 3 WebServerFqdn Binary 0 Vendor=MSUCClient comment=”Web Server Fqdn”
sleep 10
netsh dhcp server set optionvalue 3 Binary vendor=MSUCClient %6
sleep 10
if not %7 == NULL (netsh dhcp server add optiondef 4 WebServerPort Binary 0 Vendor=MSUCClient comment=”Web Server Port”)
if not %7 == NULL (netsh dhcp server set optionvalue 4 Binary vendor=MSUCClient %7)
sleep 10
netsh dhcp server add optiondef 5 CertProvRelPath Binary 0 Vendor=MSUCClient comment=”Cert Prov Relative Path”
sleep 10
netsh dhcp server set optionvalue 5 Binary vendor=MSUCClient %8
timeout 120 #allows review of success and failure, touch any key to complete or wait for timeout
How to configure DHCP for CX500
03 Tuesday Apr 2012
Posted CX500, DHCP, DHCPUtil, Option 120, Option 43, Quick Reference Guide, Scope Options
in