Topic Last Modified: 2011-01-14

Imports a set of device update rules downloaded from the Microsoft website. Device update rules associate firmware version updates with hardware devices running Microsoft Lync 2010 Phone Edition.


Import-CsDeviceUpdate -Identity <XdsIdentity> -FileName <String> [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>] [-WhatIf [<SwitchParameter>]]


Parameter Required Type Description




Indicates the service instance where the new update rules will be applied. For example: -Identity "".




Path to the update file (for example, C:\Updates\



Switch Parameter

Suppresses the display of any non-fatal error message that might occur when running the command.



Switch Parameter

Describes what would happen if you executed the command without actually executing the command.



Switch Parameter

Prompts you for confirmation before executing the command.

Detailed Description

Periodically, Microsoft releases a new set of device update rules for Lync 2010 Phone Edition. These rules represent firmware updates for devices that run Lync 2010 Phone Edition. After these rules have been imported, administrators can test the firmware updates and then, assuming the tests succeed, can make the updates available to all the relevant devices used in the organization.

The only way to create new update rules is to download update packs from Microsoft; you cannot create your own device update rules. To obtain the latest set of device update rules, go to the Help and Support page on the Microsoft website and search for "Phone Edition". Download the update package and extract the files to a folder on the computer where the updates are to be uploaded. After the files have been extracted, you can then use the Import-CsDeviceUpdate cmdlet to import the device update rules found in the extracted .CAB file (which will have the name

As noted, updates can only be loaded locally; you will need to copy to any computer running the Web Services service that needs to host device update rules. Keep in mind as well that device update rules are not replicated from server-to-server. If you want all the device update rules throughout your organization to remain in sync you will need to perform the same operation on each server hosting these rules. For example, if you remove a rule from one Web Services server you will then need to remove that same rule from your other Web Services servers. Otherwise, your device update rules will no longer be in sync.

Update rules can only be imported to services; they are not applicable at the global, site, or per-user scopes. Note, however, that Import-CsDeviceUpdate does not automatically add rules and updates to every service in a site; instead, it loads those rules and updates only to the specified service. For example, if you have three servers in a site running Web Services, you will need to run Import-CsDeviceUpdate three times, one for each instance of Web Services. Alternatively, you can use a command like the one shown in Example 3; this one command retrieves the Identity of all your servers Web Services and then runs Import-CsDeviceUpdate against each of those servers.

Who can run this cmdlet: By default, members of the following groups are authorized to run the Import-CsDeviceUpdate cmdlet locally: RTCUniversalServerAdmins. To return a list of all the role-based access control (RBAC) roles this cmdlet has been assigned to (including any custom RBAC roles you have created yourself), run the following command from the Windows PowerShell prompt:

Get-CsAdminRole | Where-Object {$_.Cmdlets –match "Import-CsDeviceUpdate"}

Input Types

None. Import-CsDeviceUpdate does not accept pipelined input.

Return Types

The Import-CsDeviceUpdate cmdlet imports instances of the Microsoft.Rtc.Management.WritableConfig.Settings.DeviceUpdate.Rule class.


-------------------------- Example 1 ------------------------

Copy Code
Import-CsDeviceUpdate -Identity "" -FileName C:\Updates\

The command shown in Example 1 imports device update rules from the file C:\Updates\

-------------------------- Example 2 ------------------------

Copy Code
Import-CsDeviceUpdate -Identity "" -FileName \\atl-fs-001\Updates\

The command shown in Example 2 imports device update rules from the UNC path \\atl-fs-001\Updates\

-------------------------- Example 3 ------------------------

Copy Code
Get-CsService -WebServer | ForEach-Object {Import-CsDeviceUpdate -Identity $_.Identity -FileName C:\Updates\}

Example 3 shows how you can use a single command to import device update rules to all your servers running Web Services. To do this, the command first calls Get-CsService, along with the WebServer parameter, in order to return a collection of all of your servers running the Web Services service. This collection is then piped to the ForEach-Object cmdlet, which loops through each server in the collection and uses Import-CsDeviceUpdate to update the latest device update rules to those servers. Note that this command will work only if you have copied to the same location (C:\Updates) on all your servers.

See Also

Other Resources