When using a Lync server infrastructure it is possible to use Lync Phones without connecting them to a PC using the USB cable. Devices like the Polycom CX500, CX3000, Snom UC600 or Aastra 6725ip are just a few examples. Since these clients are not connected to the PC they have to get their configuration information somewhere else.
This information is retrieved by the clients using DHCP. In DHCP the following options are used:
- 001 UCIdentifier;
- 002 URLScheme;
- 003 WebServerFqdn;
- 004 WebServerPort;
- 005 CertProvRelPath;
- 120 UCSipServer;
- 042 NTP Server (Optional);
While it is possible to configure these options manually there’s a tool in Lync that will retrieve the appropriate information and configure DHCP for you!
On the Lync server navigate to C:\Program Files\Common Files\Microsoft Lync Server 2013\ and you’ll find the DHCPUTIL.EXE application.
Open a command prompt or a Powershell windows and enter the following command:
DHCPUtil.exe -SipServer lyncpool.exchangelabs.nl –WebServer lyncpool.exchangelabs.nl
This information can be used to configure the DHCP options and the DHCPUtil tool can be used for this as well, but you have to run it locally on the DHCP server. Be aware that you need to install the Microsoft Visual C++ Redistributable on the DHCP server (can be found on the Lync DVD in the \setup\amd64 directory and is called vcredist_x63.exe). Copy the DHCPUtil.exe and DHCPConfigScript.bat to a directory on the DHCP server and enter the following command:
DHCPUtil.exe -SipServer lyncpool.exchangelabs.nl –WebServer lyncpool.exchangelabs.nl –RunConfigScript
This will parse the output of the DHCPutil application into the accompanying DHCPConfigScript and configure the DHCP options. After restarting the DHCP Service the options are visible in the DHCP Console:
To enable the DHCP in the Lync configuration, enable the the PIN authentication and assign a PIN to a user, option open the Lync Management Shell and enter the following commands:
Set-CsWebServiceConfiguration -Identity Global –UsePinAuth $true
Set-CsRegistrarConfiguration -EnableDHCPServer $TRUE
Set-CsclientPin –Identity Jaap –Pin 83659
Now wire your phone to the network, let it boot and when ready you can login using your phone number and the PIN that was assigned to the user.