共用方式為


Set-AipServiceDocumentRevoked

Revokes access for specified users, to a specified tracked and protected document.

語法

Default (預設值)

Set-AipServiceDocumentRevoked
    [-Force]
    -ContentId <Guid>
    -
    -IssuerName <String>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Relevant for the unified labeling client only

The Set-AipServiceDocumentRevoked cmdlet revokes access to a specified document, based on the document's contentID and Rights Management issuer.

To retrieve the contentID for a specific document, use the Get-AipServiceDocumentLog cmdlet.

範例

Example 1: Revoke access to a specific protected document

PS C:\>Set-AipServiceDocumentRevoked -ContentId c03bf90c-6e40-4f3f-9ba0-2bcd77524b87 - IssuerName  “alice@microsoft.com”

This command revokes access to the document identified using the c03bf90c-6e40-4f3f-9ba0-2bcd77524b87 contentID and This command sets the document state as revoked for the document with contentId as c03bf90c-6e40-4f3f-9ba0-2bcd77524b87 & IssuerName as alice@microsoft.com.

參數

-Confirm

Prompts you for confirmation before running the cmdlet.

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False
別名:cf

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ContentId

Specifies the email address of a user or group to have administrative rights for the protection service. If the user has no email address, specify the user's Universal Principal Name.

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

String
Position:Named
必要:True
來自管線的值:True
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-Force

Forces the command to run without asking for user confirmation.

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False
別名:wi

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.