You can use MDM to deploy software to managed Windows Mobile 6.1 devices. You do this by using Software Distribution and Windows Server Update Server 3.0 (WSUS). To deploy cabinet (.cab) files that have Office Communicator Mobile settings to mobile devices, MDM Software Distribution targets groups in WSUS and Active Directory Group Policy. Additionally, MDM can deploy the required root certificates for Microsoft Office Communicator Mobile 2007.
For a comprehensive description of the software distribution process in MDM, see Distributing Software to Managed Devices in MDM Operations at this Microsoft Web site: http://go.microsoft.com/fwlink/?LinkID=11241.
The following steps summarize the MDM client process for software distribution:
-
The mobile device connects through MDM Gateway Server at its scheduled connection time.
-
The device connects to the Device Management Service on MDM Device Management Server. Communication is established between the device and the Device Management Service by using an OMA DM session.
-
MDM Device Management Server checks its database to obtain the OMA DM commands for the device.
-
MDM Device Management Server offers the software packages applicable to the device.
-
The device downloads and automatically installs the software packages.
-
The device reports the result of the installation back to MDM Device Management Server.
The following sections provide high level steps for preparing for deployment of Microsoft Office Communicator Mobile 2007 to managed mobile devices by using MDM Software Distribution.
Configuring the Communicator Mobile Client
The Communicator Mobile client requires additional configuration to successfully connect to the Office Communications Server 2007 infrastructure and provide presence information on the mobile device. For information about how to use an .inf file to configure a Communicator Mobile client by using ActiveSync, see this Microsoft Web site: http://go.microsoft.com/fwlink/?LinkId=121406.
When deploying the Communicator Mobile client with MDM Software Distribution, you may need to provide Communicator Mobile client registry settings. In this way, you can reduce the amount of manual configuration experienced by the users. Users may still need to manually configure their sign-in name, username (in the form of <domain>\<username>), and password, but you can configure the registry with other information before you distribute packages.
Note: |
|---|
|
Registry values may be overwritten during program installation. You can apply group policy to persist registry settings, but the registry values may be temporarily replaced with default values immediately after program installation. When group policy is refreshed, the values are replaced by those specified by group policy.
|
The default policy calculation is 8 hours. However, you can change this value by using the Set-MobilePolicyServiceConfig cmdlet in the MDM Command Shell on the MDM Device Management Server. You can also force policy refresh on an individual device basis by using the Update-MobilePolicyCalculation cmdlet from the MDM Device Management Server.
To configure the registry, you can change the following values in HKCU\Software\Microsoft\Communicator\System Settings on the device:
-
Server
-
The server address to display in the External server name box in Communicator Mobile Options.
-
ServerInternal
-
The server address to display in the Internal server name box in Communicator Mobile Options.
-
RememberPassword
-
If set to 1, the Remember my password check box in Communicator Mobile Options is selected. If set to 0, the check box is cleared.
-
DisableCertCheck
-
If set to 1, certificate revocation list (CRL) checking is disabled for the Communicator Mobile client. If set to 0, CRL checking is enabled.
-
AutoLogon
-
If set to 1, the Automatically Sign in check box in Communicator Mobile options is selected. If set to 0, the check box is cleared. This setting is applied only if RememberPassword is set to 1.
You should manage the registry values required by the Communicator Mobile client through Group Policy. To do this, you would create a custom Group Policy Administration template (.adm) to manage the Communicator Mobile specific registry settings. For more information, see “Writing Custom ADM Files for System Policy Editor” at this Microsoft Web site: http://go.microsoft.com/fwlink/?LinkID=109295.
The following example is a custom .adm template that you can use to define registry settings. You can use this example to create a new Administrative Template for managing registry settings on mobile clients. For example, you can use this template to include a group of policies for defining the server names for the internal and external Office Communications Servers.
;======================================================================
; Custom Registry Administrative Template File
; _version="1.0"
;======================================================================
CLASS MACHINE
CATEGORY "Custom Registry Settings"
CATEGORY "Communicator Mobile"
POLICY "Communicator Mobile"
EXPLAIN !!ExplainCoMo
KEYNAME "SOFTWARE\Policies\Microsoft\Windows Mobile Settings\Registry\HKCU\Software\Microsoft\Communicator\System Settings"
PART "Server"
EDITTEXT
VALUENAME "Server"
END PART
PART "ServerInternal"
EDITTEXT
VALUENAME "ServerInternal"
END PART
END POLICY
End CATEGORY
END CATEGORY
[STRINGS]
For ExplainCoMo, the Server value indicates the public FQDN of the OCS services. The ServerInternal value indicates the internal FQDN of the services. For example, sip.contoso.com. For more information about configuring registry values for Communicator Mobile, see http://go.microsoft.com/fwlink/?LinkID=121406.
You can use Group Policy to set these values, and then use the existence of these values as a dependency to install the Communicator Mobile client package. The dependency is defined during package creation. For more information, see “Creating a New Package” in MDM Operations at this Microsoft Web site: http://go.microsoft.com/fwlink/?LinkID=11241.
Note: |
|---|
|
You can use third-party tools to modify .cab files to include the required registry settings and preconfigure portions of the Communicator Mobile client.
|
Preparing the Environment for Software Distribution
-
Configure Active Directory Group Policies to deploy the required root certificates to the Software Publisher Certificate (SPC) and Unprivileged Execution Trust Authorities stores on the mobile devices.
The SPC store governs cab installation on a Windows Mobile Device. The Unprivileged Execution Trust Authorities store is used by Windows Mobile security to control code execution. If an executable can be chained up to a certificate in this store, it is considered signed and is assigned a trust level based on the device security policies. For more information about this process, see “Importing Certification Authority (CA) Certificates” in MDM Operations at this Microsoft Web site: http://go.microsoft.com/fwlink/?LinkID=11241.
-
Create a Personal Security Certificate (PFX) and code signing template for signing the Microsoft Office Communicator Mobile 2007 cab files. For more information, see “Creating the Personal Information Exchange (PFX) Certificate” in MDM Operations at this Microsoft Web site: http://go.microsoft.com/fwlink/?LinkID=112415.
Note: |
|---|
|
It is advantageous to use the same certificate chain to create the code signing clients as that used to issue the MDM client certificates. The certificate chain is automatically deployed to the MDM mobile client Root Certificate store during device enrollment. You must still install the Root Certificate in the SPC and Unprivileged Execution Trust store.
|
-
Export the PFX file generated in the previous step, and then copy it to the trusted publishers and enterprise root certificate stores on the machine that you will use to sign the Microsoft Office Communicator Mobile 2007 cab files.
-
Download Microsoft Office Communicator Mobile from Microsoft Downloads, and then run the .msi to extract the .cab files for mobile clients. Microsoft Downloads is at this Microsoft Web site: http://go.microsoft.com/fwlink/?LinkId=121409.
Note: |
|---|
|
There are two .cab files; one for the Windows Mobile Professional (Communicator.PPC.cab) and one for Windows Mobile Standard (Communicator.SP.cab). You must package each .cab separately for the appropriate device.
|
-
Using CabSignTool, sign the Microsoft Office Communicator Mobile 2007 cab files. For more information, see “Scripted Signing of .Cab files using the CabSignTool Utility” in MDM Operations at this Microsoft Web site: http://go.microsoft.com/fwlink/?LinkID=11241.
Note: |
|---|
|
The CabSignTool is available as a download at this Microsoft Web site: http://go.microsoft.com/fwlink/?LinkID=116086. It includes the three files required to successfully sign .cab files for distribution. The three files include: Cabsigntool.exe; CAPICOM.dll (version 2.1.0.1); and Signtool.exe.
|
-
Install the Code Signing Certificate to the Trusted Root Certification Authorities store and the Trusted Publishers store for the machine that will be used to sign .cab files. If you run MDM Software Distribution Console on a separate computer, follow these steps on both the computer that has the console and the computer that has the WSUS server. For more information, see “Publishing .Cab Files” in MDM Operations at this Microsoft Web site: http://go.microsoft.com/fwlink/?LinkID=11241.
Software Distribution Steps
-
In the MDM Software Distribution Console, create a Software Distribution Device Group for targeting the Microsoft Office Communicator Mobile 2007 cab files to mobile devices. To organize a set of mobile devices into a managed collection, you must create a device group into which you can add the mobile device accounts.
-
Configure Software Distribution to either use client-side or server-side targeting.
By default, MDM Software Distribution uses server-side targeting, meaning the MDM Software Distribution Console is used to manage device group membership. Client side targeting uses either group policy or registry values on the mobile devices to associate devices to the groups defined in the console. To enable client-side targeting, you would change the Targeting Options on the Devices node in the console and then configure client side targeting with group policy. For more information, see MDM Operations at this Microsoft Web site: http://go.microsoft.com/fwlink/?LinkID=112415.
-
Use the Create Package Wizard to create a .cab package for deployment to mobile devices.
This tool lets an administrator create a software package, choose the devices that will receive the package, set specific dependencies, and control the installation. After a software package is created in the MDM Software Distribution Console, the package must be approved by IT administrators for deployment to managed devices. For more information about creating packages for MDM software distribution, see this “Creating a New Package” in MDM Operations at this Microsoft Web site: http://go.microsoft.com/fwlink/?LinkID=112415.
To determine if the application installed on the mobile devices that had the software distribution policy applied, select Start, and then choose Programs. If the application installed successfully, Microsoft Office Communicator Mobile 2007 application will display under Programs.
Validating Functionality
Like many applications designed to support Internet based clients, you should make sure that there is end-to-end functionality from the company network, through the perimeter, and ultimately to the mobile device client. Once installed and configured with the appropriate server sources, credentials, and password, the Communicator Mobile client should successfully sign in. The presence of users online should then be visible and the presence of users logged in should change between online, away, busy, and so forth.
Communicator Mobile Deployment Troubleshooting
Package Creation
Two common errors may occur when creating packages for Communicator Mobile deployment:
-
Verification of the file signature failed for the file <path to .cab file>. This error occurs during the initial steps of defining the package. It indicates that the code signing certificate is not found in the Trusted Publishers store of the host that is creating the package using the MDM Software Distribution Console. Make sure that the code signing certificate, with the private key, has been imported into the local machine’s Trusted Publisher container.
-
The file for this package failed to download. Please check the file credentials and recreate package using the create package wizard. This error occurs during the final phase of package creation when certificate validation errors prohibit the package from being sent successfully to WSUS. Make sure that the code signing certificate, with private key, is imported to the local machine’s Trusted Publisher container on the host system where WSUS is installed.
Group Policy
You may need to determine which group policies settings have been applied to mobile devices. You can use the Group Policy Management console to view the applied denied GPO status and the effective settings for a user and device, or for a device for machine settings. To query a device for the GPO status and effective settings, you use the container named Windows Mobile Group Policy Results in the console to query a device.
Performing a right-mouse-click on the container reveals a popup menu with an option to start the Windows Mobile Group Policy Results Wizard. The wizard then steps you through various options to select a device from Active Directory or a user name and device associated with that user. This results in a report with three tabs that provides a Summary (Applied GPOs, Denied GPOs, etc.), Settings, and Policy Events.
You can use the Group Policy Modeling container in the Group Policy Management Console to start the Group Policy Modeling Wizard. This wizard simulates the effective application of group policies and their settings by targeting users and containers in Active Directory.
The Windows Mobile Group Policy Results query retrieves the policy settings that are currently are applied to the specific device.
Software Distribution
If software distribution fails to publish, the most likely cause is that the required certificates are not present in the certificate stores on the publishing machine and/or the MDM Device Management Server.
If software distribution fails to install software on the mobile device, the most likely cause is that the software distribution publishing certificates are not in the correct certificate stores on the device. The following list shows ways that you can resolve this issue:
-
Run the powershell cmdlet UpdateMobilePolicyCalculation –DEVICENAME on the MDM Device Management Server, where DEVICENAME is the name of the device that is failing
-
Before targeting software for installation, use the MDM ConnectNow tool to force an OMA-DM session with the MDM Device Management Server. This ensures that the software publishing certificates have been pushed to the device before MDM Software Distribution offers software to the device.
Overall, if software distribution fails for any reason, Mobile Device Manager retries the distribution in seven days by default. The seven day count starts when the device notifies the MDM Device Management Server of the installation failure. You can change the default retry interval by running a MDM Powershell cmdlet Set-SoftwareDistributionConfig –ReofferPeriodDays, where 0 is a value to reoffer the software package immediately at the next OMA-DM session.
Note: |
|---|
|
We recommend that you only set the Set-SoftwareDistributionConfig value to 0 in test MDM environments.
|
The following illustration shows the simple installation flow for new devices in MDM:
The following illustration shows the simple MDM software distribution package flow for software distribution failures.
The following illustration shows the different package reporting conditions in the MDM Software Distribution Console. This information helps you understand the meaning of software package status in MDM.
Troubleshooting Office Communicator Mobile 2007