Topic Last Modified: 2010-10-01

Forces the back-end user database to clear its replication status with Active Directory. This causes the database to re-read all the user-related information stored in Active Directory Domain Services (AD DS).


Update-CsUserDatabase [-Fqdn <Fqdn>] [-Force <SwitchParameter>]


Parameter Required Type Description




Fully qualified domain name (FQDN) of the computer hosting the user database. If this parameter is not specified then Update-CsUserDatabase will update the user database for the pool that the local computer belongs to.



Switch Parameter

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

Detailed Description

The Microsoft Lync Server 2010 user database holds detailed information about such things as contacts, groups, and access permissions. As such, the database is required to periodically synch its contents with the information stored in Active Directory.

More often than not, the automatic synch between the user database and Active Directory will keep the information in the user database up to date. However, it is possible that a problem might occur that prevents this automatic synchronization from taking place. In a case such as that, you can use the Update-CsUserDatabase cmdlet to force the user database to refresh its contents by re-reading all of the user information stored in Active Directory. You might also need to run this cmdlet if a product update ever includes a change to the user replicator service.

Who can run this cmdlet: By default, members of the following groups are authorized to run the Update-CsUserDatabase cmdlet locally: RTCUniversalUserAdmins, 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 "Update-CsUserDatabase"}

Input Types

None. Update-CsUserDatabase does not accept pipelined input.

Return Types

None. Instead, Update-CsUserDatabase updates instances of the Microsoft.Rtc.Management.Xds.DisplayuserDatabase object.


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

Copy Code

The command shown in Example 1 locates the user database for the pool where the local computer is located, then forces that database to connect to and return complete user information from Active Directory.

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

Copy Code
Update-CsUserDatabase -Fqdn

Example 2 shows how you can force a specific user database to re-read data from Active Directory. In this case, that’s the user database for the pool

See Also