你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Clear-Authentication

Clears the user settings and RMS templates for the current user.

语法

Default (默认值)

Clear-Authentication

说明

The Clear-AIPAuthentication cmdlet resets the user settings for the Azure Rights Management service.

  • Files in %LocalAppData%\Microsoft\MSIP\AppDetails are not deleted if you authenticate by using a token from Azure AD when you run Set-Authentication.

  • All Rights Management templates from the %LocalAppData%\Microsoft\MSIPC\msip folder are deleted for the current user.

  • Rights Management templates are not deleted from the %LocalAppData\Microsoft\MSIPC folder that Office uses.

For a list of files and registry entries that are deleted, see the the details about the Reset Settings option in the following admin guides:

示例

Example 1

PS C:\> Clear-Authentication

This command is functionally the equivalent of selecting the Reset Settings from the Help and Feedback menu option, and deleting the templates.

输入

None

输出

System.Object