Deploy Lync Client Using Group Policy
Overview
In this post I discuss the methods Client installation Lync.
I will demonstrate the installation script by using the exe client and another distributing the msi file. In both methods needy will use a GPO to start the installation process.
During execution of the installer exe the following actions are taken:
- Czech prerequisites for client installation
- Installs the prerequisite:
- Microsoft Visual C + + 2008
- Microsoft Silverlight
- Remove Microsoft Lync Attendee
- Remove previous versions of Office Communicator Server
For these reasons it is recommended to install the client by .exe
Installation via Script
Create a folder ClientLync and copy the installation file. Share the folder and add the group *Everyone * with the right reading.
http://2.bp.blogspot.com/-xSQFMVbhM4E/TmgBXM_RaoI/AAAAAAAABeg/vGaiT-OoLeA/s320/dep01.png
In the security of NTFS folder add the group Domain Computers with read permission on the folder.
http://1.bp.blogspot.com/-kO1N3bY-vhg/TmgD-aqoQsI/AAAAAAAABek/j19D5bhs1hg/s320/dep02.png
Create a bat file to run the exe file. The script was created in the shared folder FQDNDomain \ SYSVOL \ Domain \ Script.
\ \ Share \ LyncSetup / install / silent
http://3.bp.blogspot.com/-FthzB_WBiMQ/TmgEtJn-XjI/AAAAAAAABeo/n52pXSyDudg/s320/dep06.png
With the script and created the installation files to create a shared lack GPO to apply the script on the machines.
Open the Group Policy Management and create a new policy Deploy Lync
http://3.bp.blogspot.com/-s58EpHftjRA/TmgI18ul3eI/AAAAAAAABes/Seegm4n5358/s320/dep03.png
Edit the new policy, [Computer Configuration / Policies / Windows Settings / Scripts]
http://1.bp.blogspot.com/-2i_BgDub9oo/TmgLLN_LL_I/AAAAAAAABew/2APtrbdSUsE/s320/dep07.png
*
*
Write a script Statup
http://2.bp.blogspot.com/-E13F0cWpzE8/TmgLf7qWDGI/AAAAAAAABe0/rqVYF-OTG5E/s320/dep08.png
Add the script of the SYSVOL
http://4.bp.blogspot.com/-OcU_o3_omUc/TmgMAgeR4HI/AAAAAAAABe4/VGZP6HS3_DQ/s320/dep09.png
Add the link to this GPO in a OU where the accounts of the machines are.
http://1.bp.blogspot.com/-DzAGZTG5ixk/TmgNXuT_5AI/AAAAAAAABe8/KQkWZmXzsic/s320/dep11.png
http://4.bp.blogspot.com/-ewOaTg-YvFw/TmgNYNNa6iI/AAAAAAAABfA/20EhsDw0HJI/s320/dep12.png
Restart the machine and verify that the Client Lync 32-bit plugins and Silverlight were installed.
*
*
*
*
Installation of MSI File
If Lync Client is installed by this method you must manually install the Microsoft Silverlight and Microsoft Visual C + +, preferably via the installation script. If the installation is done by exe dependencies are resolved without any additional configuration.
To get the MSI file and dependencies for client installation, install the client on a machine Lync, and go to the folder C: \ Program Files (x86) \ OCSetup Lync.msi and copy the files, and Silverlight.exe vcredist_x86. exe file to a shared folder.
http://1.bp.blogspot.com/-NpqGQi6AyLs/TmgO1RdlmHI/AAAAAAAABfE/puyBCj_XS2M/s320/dep113.png
Edit the group policy in *[Computer Configuration / Policies / Software Settings] * Right click on *Software Instalation -> New * and Package
http://2.bp.blogspot.com/-dSPT5lBpErU/TmgSm_nUshI/AAAAAAAABfI/T8nk7qML4pg/s320/dep14.png
Add the msi file by configuring your network path UNC
http://3.bp.blogspot.com/-8u0dvns0Yd4/TmgT8qwyl_I/AAAAAAAABfM/ZJT_gMl5w2I/s320/dep15.png
Make the link the GPO in the OU
http://3.bp.blogspot.com/-eSAC-FPOpo8/TmgWtONy_sI/AAAAAAAABfQ/TQsv5YLBaWw/s320/dep11.png
http://3.bp.blogspot.com/-dt2ZAtwraSU/TmgWtkmMlsI/AAAAAAAABfU/l1MwseDbCms/s320/dep12.png
Using WMI Filters
A filter WMI (Windows Management Instrumentation) allow to dynamically determine the scope of GPO's based on attributes of the destination computer.
When a GPO is linked to a WMI filter and applied on the target computer, the filter is evaluated. If the WMI filter evaluates to false, the GPO will not apply. If the WMI filter evaluates to true, the group policy is applied.
this step will create two scripts for installing Lync Client 32 and 64 bits, two group policies are created to install each and the creation of WMI filters to apply each script to the operating systems installed in stations.
Both installation files Lync Client are copied to the folder ClientLync. was also copied the update files for clients to be applied on clients.
A Cumulative update 4 can be downloaded from the link
http://3.bp.blogspot.com/-gUCHh3Md1bA/TxtMsK3j8pI/AAAAAAAACvQ/Eslh9dHoTEE/s320/wmi01.png
As the procedure was created a script for silent installation of the client, this time I created two files. bat for a client to a 32-bit and 64-bit client.
\ \ Share \ LyncSetup_ <version> / install / silent
For installation of Lync Client 32-bit
http://2.bp.blogspot.com/-n6LTeMzE3TY/TxtMy0M0BDI/AAAAAAAACxM/fcBokQT68S4/s320/wmi17.png
To install the Lync Client 64-bit
http://4.bp.blogspot.com/-oWyQpu2tBp8/TxtMyU3GWfI/AAAAAAAACxE/SxF6XE6smC4/s320/wmi16.png
The script files were copied to the \ \ HM01 \ SYSVOL \ home.intranet \ scripts
http://4.bp.blogspot.com/-GMziBmGCclQ/TxtMs0aYjpI/AAAAAAAACvY/6nNcSq04mvc/s320/wmi02.png
Run the Group Policy Management folder, click the WMI Filters and add a filter
http://2.bp.blogspot.com/-XNeuivYxxvU/TxtMtfxOWGI/AAAAAAAACvg/dfYAy9MsjHY/s320/wmi03.png
Add the name of the filter *stations x32, * and description and click *Add *
http://1.bp.blogspot.com/-h00GIzGL6C4/TxtMtxGj0uI/AAAAAAAACvo/LRYFxo0YCqo/s320/wmi04.png
Add the filter.
This filter will be applied to operating systems Windows XP, Windows Vista and Windows 7:
Select * from Win32_OperatingSystem where ProductType = "1"
http://3.bp.blogspot.com/-Tw6n_aUaDj8/TxtMuCtSlNI/AAAAAAAACvw/2rrmrdy_xv0/s320/wmi05.png
Back in the wizard to add a new filter.
http://4.bp.blogspot.com/-axQq2HQWdPI/TxtMuvg7LfI/AAAAAAAACv4/QeZSF-rj2ak/s320/wmi06.png
Add a new filter. This filter is applied to 32-bit operating systems:
Select * from Win32_Processor where AddressWidth = "32"
http://4.bp.blogspot.com/-H5pl9XtWT10/TxtMuxUKOqI/AAAAAAAACwA/Qt56m8XCBRo/s320/wmi07.png
Save the filter settings
http://4.bp.blogspot.com/-MNbGzvmHEBs/TxtMvZVMmsI/AAAAAAAACwI/EFGwrxgVmF4/s320/wmi08.png
Add a new filter to apply the policy to customers with 64-bit operating systems
Add a new WMI filter
http://1.bp.blogspot.com/-e8TP-QVVW7Q/TxtMvyrwUAI/AAAAAAAACwQ/2PFSCq3RHG4/s320/wmi09.png
Set the filter name *Stations x64 * and description and click Add
http://3.bp.blogspot.com/--I_OMqZSOb4/TxtMwY8h_SI/AAAAAAAACwY/z8Jd9qOJasE/s320/wmi10.png
Add a new filter.
This filter will be applied to operating systems Windows XP, Windows Vista and Windows 7:
Select * from Win32_OperatingSystem where ProductType = "1"
http://2.bp.blogspot.com/-7rO-BGVA6Zg/TxtMwivjq1I/AAAAAAAACwg/bex7m8EN6jc/s320/wmi11.png
Add a new filter.
http://2.bp.blogspot.com/-YK1ppuvgvgg/TxtMxIB5b1I/AAAAAAAACws/ao2Yl_KUdCU/s320/wmi12.png
This filter will apply to 64-bit operating systems:
Select * from Win32_Processor where AddressWidth = "64"
http://4.bp.blogspot.com/-qhen4kYz1do/TxtMxjOID9I/AAAAAAAACw0/dbe7aO79KY4/s320/wmi13.png
Save the filter settings
http://1.bp.blogspot.com/-QjVioqgaHOY/TxtMyMLLCTI/AAAAAAAACw8/CPjZavkSbXQ/s320/wmi14.png
Create two political groups, a policy for operating system 32 and 64 bits.
http://2.bp.blogspot.com/-9hNpPWZvn_g/TxtMzGV2C4I/AAAAAAAACxU/0MexfKOAUog/s320/wmi18.png
Set the name of the two policies,
http://1.bp.blogspot.com/-6wVbQno3dzo/TxtMziBRqhI/AAAAAAAACxc/Fc1ErqheLTg/s320/wmi19.png
http://3.bp.blogspot.com/-0ujVws7yZ5c/TxtMz7I8gOI/AAAAAAAACxk/XdBIvQlEXBk/s320/wmi20.png
The result is the creation of two policies:
http://3.bp.blogspot.com/-VC5Tnmym3Jc/TxtpcOB4MYI/AAAAAAAACzc/0zlYrXh8r9U/s1600/wmi32.png
Double-click on the policy, the policy properties and the properties of WMI Filtering select the filter designed for 32-bit operating systems
http://1.bp.blogspot.com/-wgua3HM5uRQ/TxtM0WiR1ZI/AAAAAAAACxs/b94PkHdNXu0/s320/wmi21.png
Do the same for setting policy for the 64-bit system
http://3.bp.blogspot.com/-22Av4HydCo4/TxtM0_FBEaI/AAAAAAAACx0/H0aHX9ih00w/s320/wmi22.png
Then configure the scripts in their policies:
Access policy settings
http://3.bp.blogspot.com/-XebXod__4Fs/TxtM1ojtbOI/AAAAAAAACx4/JGpmyU1mtk4/s320/wmi23.png
Access the settings Computer Configuration in Policies open the properties of Windows Settings in scripts to access the properties of the Startup folder.
http://4.bp.blogspot.com/-uwuUYbC_T3s/TxtM2EyvKWI/AAAAAAAACyA/AVqIPfK0uG8/s320/wmi24.png
Click Add to add the script
http://4.bp.blogspot.com/--8ZP9IRIBtI/TxtM2vw5jII/AAAAAAAACyI/NjAtcRS3Mfs/s320/wmi25.png
Click Broese and select the script of architecture, in which case InstallClientx32
http://1.bp.blogspot.com/-KjZXJvX6JSo/TxtM3inJ6CI/AAAAAAAACyY/_WwU8JNZBfA/s320/wmi27.png
And apply the settings
http://1.bp.blogspot.com/-bdi_E_BS8QY/TxtM4I1x0_I/AAAAAAAACyk/LSo9K3RtaIU/s320/wmi28.png
Perform the same settings for the policy to the 64-bit operating systems by selecting the script *InstallClientx64.
*
With scripts configured policies, apply in the two Organizational Units for workstations
http://2.bp.blogspot.com/-lgNCfIHOUxU/TxtM470NQZI/AAAAAAAACy0/PJaPJGIm2ew/s320/wmi30.png
Select the two policies
http://1.bp.blogspot.com/-wC9cT4d4gIY/TxtM5ZQoKKI/AAAAAAAACy8/0pL7RJLgJ0E/s320/wmi31.png
Testing Filters
In the Organizational Unit Computer apply where the two policies have the account of two machines. The HmDesk01 installed with Windows 7 64-bit version and a machine HmDesk02 installed with Windows 7 32-bit version.
After restarting the stations use the command GPResult to generate a report of the filters applied on the machines and GPOs
The Windows 7 64-bit machine:
WMI Filters: Stations x64 value *True
gpo Check for 64-bit operating systems has been applied
*
*http://4.bp.blogspot.com/-WNgfs_zVjZs/Txv_kjyWQxI/AAAAAAAACzk/BkmbGBm8zKM/s320/wmi33.png
*
The Windows 7 32-bit machine:
*WMI Filters: Stations x32 * value True
gpo Check for 32-bit operating systems has been applied
http://3.bp.blogspot.com/-g0wtYVZ7Mi0/Txv_lnuq-8I/AAAAAAAACzs/6lfNairVNx8/s320/wmi34.png
In the Event Viewer of the machines we can see the start of the installation of the client with EventId 1040
http://1.bp.blogspot.com/-gNGvQYvQpAg/TxwAPOuVHvI/AAAAAAAACz0/BH1nYUIOPl8/s320/wmi35.png
Applying Updates
The same script that was used to install the clients can be modified to include the client updates. Go to the folder where the scripts were saved.
http://4.bp.blogspot.com/-olt0GZrs73g/TxwCtRYaYrI/AAAAAAAACz8/UERevoNN3gM/s320/wmi36.png
Open the scripts InstallClientx32.bat and add the line
msiexec / update \ \ HM01 \ ClientLync \ Lync_x32.msp / quiet
http://4.bp.blogspot.com/-mdpeLxbesHs/TxwCt5tFLeI/AAAAAAAAC0E/9Rk2qnohSXI/s400/wmi37.png
Open the scripts InstallClientx64.bat and add the line
msiexec / update \ \ HM01 \ ClientLync \ Lync_x64.msp / quiet
http://3.bp.blogspot.com/-TxOgT-O6Qbs/TxwCuE30m7I/AAAAAAAAC0M/i-CvttLFNvI/s400/wmi38.png
With this modification after the client installation of the update file Lync Lync_xxx.msp is applied. If the client machine is already present in the script applies only to update the client.
To verify that the update has been applied to client version must be equal to 4.0.7577.4051
http://3.bp.blogspot.com/-_m61CYuk3fg/Tu48uyDGlmI/AAAAAAAACe8/HhhvpfI7QSs/s320/clientCU4.png
Reference
article was originally written by:
**Fernando Lugão Veltem
blog: **http://flugaoveltem.blogspot.com
**twitter: **@ flugaoveltem