停用或重新啟用 Lync Server 2013 的使用者帳戶Disable or re-enable user account for Lync Server 2013

 

主題上次修改日期: 2016-04-04Topic Last Modified: 2016-04-04

您可以使用下列程式停用 Lync Server 2013 中先前啟用的使用者帳戶,而不會遺失您為使用者帳戶所設定的 Lync Server 設定。You can use the following procedure to disable a previously enabled user account in Lync Server 2013 without losing the Lync Server settings that you configured for the user account. 因為您不會遺失 Lync Server 使用者帳戶設定,所以您可以重新啟用先前啟用的使用者帳戶,而不需要重新設定使用者帳戶。Because you do not lose the Lync Server user account settings, you can re-enable a previously enabled user account again without having to reconfigure the user account.

警告

只停用 Active Directory 中的使用者帳戶, 不會 停止使用者登入或使用 Lync Server。Simply disabling a user account in Active Directory will not stop a user from being able to sign into or use Lync Server. 這是因為 Lync 使用憑證驗證來簡化驗證程式,而這些用戶端憑證在180天內有效。This is because Lync uses certificate authentication that streamlines the authentication process, and these client certificates are valid for 180 days. 若要停止停用 Lync 伺服器存取的 Active Directory 帳戶,您必須使用 get-csuser 指令程式 ,或使用 lync server 控制台 (如本文所述)。If you want to stop disabled Active Directory accounts that had been enabled for Lync from having access to Lync Server, you must use the Disable-CsUser cmdlet, or use the Lync Server Control Panel as laid out in this article. 當使用者在 Lync 中停用,且中央管理存放區已在環境中複寫之後,使用者就無法再登入。Once the user is disabled in Lync and the Central Management store has been replicated in the environment the users will no longer be able to sign in. 而且,已登入的使用者將會中斷連線。Also, users that are signed in will get disconnected.

停用或重新啟用 Lync Server 先前啟用的使用者帳戶To disable or re-enable a previously enabled user account for Lync Server

  1. 從指派給 CsUserAdministrator 角色或 CsAdministrator 角色的使用者帳戶,登入內部部署中的任何電腦。From a user account that is assigned to the CsUserAdministrator role or the CsAdministrator role, log on to any computer in your internal deployment.

  2. 開啟瀏覽器視窗,然後輸入管理 URL 以開啟 Lync Server 控制台。Open a browser window, and then enter the Admin URL to open the Lync Server Control Panel. 如需您可以用來啟動 Lync Server 控制台之不同方法的詳細資訊,請參閱 Open Lync server 2013 系統管理工具For details about the different methods you can use to start Lync Server Control Panel, see Open Lync Server 2013 administrative tools.

  3. 在左導覽列中,按一下 [使用者]In the left navigation bar, click Users.

  4. [搜尋使用者] 方塊中,輸入全部或部分的顯示名稱、名字、姓氏、安全性帳戶管理員 (SAM) 帳戶名稱、SIP 位址或您想要停用或重新啟用的使用者帳戶之線路統一資源識別元 (URI),然後按一下 [尋找]In the Search users box, type all or the first portion of the display name, first name, last name, Security Accounts Manager (SAM) account name, SIP address, or line Uniform Resource Identifier (URI) of the user account that you want to disable or re-enable, and then click Find.

  5. 按一下表中您想要停用或重新啟用的使用者帳戶。In the table, click the user account that you want to disable or re-enable.

  6. [動作] 功能表上,執行下列其中一項:On the Action menu, do one of the following:

    • 若要暫時停用 Lync Server 2013 的使用者帳戶,請按一下 [ 暫時停用 Lync server]。To temporarily disable the user account for Lync Server 2013, click Temporarily disable for Lync Server.

    • 若要啟用 Lync Server 2013 的使用者帳戶,請按一下 [ 重新啟用 Lync server]。To enable the user account for Lync Server 2013, click Re-enable for Lync Server.

使用 Windows PowerShell 停用或重新啟用使用者帳戶Using Windows PowerShell to Disable or Re-enable User Accounts

您可以暫時停用使用者帳戶,然後再使用 Set-CsUser Cmdlet 重新啟用使用者帳戶。User accounts can be temporarily disabled, and then later re-enabled, by using the Set-CsUser cmdlet. 您可以從 Lync Server 2013 管理命令介面或從 Windows PowerShell 的遠端會話中執行此 Cmdlet。You can run this cmdlet either from the Lync Server 2013 Management Shell or from a remote session of Windows PowerShell. 如需使用遠端 Windows PowerShell 連接至 Lync Server 的詳細資訊,請參閱 Lync Server Windows PowerShell 博客文章「快速入門:使用遠端 PowerShell 管理 Microsoft Lync Server 2010」 at https://go.microsoft.com/fwlink/p/?linkId=255876For details about using remote Windows PowerShell to connect to Lync Server, see the Lync Server Windows PowerShell blog article "Quick Start: Managing Microsoft Lync Server 2010 Using Remote PowerShell" at https://go.microsoft.com/fwlink/p/?linkId=255876.

停用使用者帳戶To disable a user account

  • 若要暫時停用使用者帳戶,請將 Enabled 內容值設為 False ($False)。To temporarily disable a user account, set the value of the Enabled property to False ($False). 例如:For example:

    Set-CsUser -Identity "Ken Myer" -Enabled $False
    

重新啟用使用者帳戶To re-enable a user account

  • 若要重新啟用已停用的使用者帳戶,請將 Enabled 內容值設為 True ($True)。To re-enable a disabled user account, set the value of the Enabled property to True ($True). 例如:For example:

    Set-CsUser -Identity "Ken Myer" -Enabled $True
    

如需詳細資訊,請參閱 Set-CsUser Cmdlet 的 [說明] 主題。For more information, see the help topic for the Set-CsUser cmdlet.