Remove-HPSureAdminDevicePermissions



Summary

Removes a device permission from the HP Sure Admin Key Management Service (KMS)

Syntax

Remove-HPSureAdminDevicePermissions [-KMSUri] <String> [-SerialNumber] <String> [[-CacheAccessToken]] [<CommonParameters>]

Remove-HPSureAdminDevicePermissions [-KMSAppName] <String> [-SerialNumber] <String> [[-CacheAccessToken]] [<CommonParameters>]

Description

This command removes a device permission from the HP Sure Admin Key Management Service (KMS). Device permissions allow IT administrators to manage local access of specific devices without having to provision a unique LAK key for each device. This command removes the permissions set for the device specified via its serial number from KMS. The connection with the KMS server requires the user to authenticate with a valid Microsoft account.

Parameters

Name Argument Description
KMSUri <String> Specifies the complete URI for uploading the permissions (I.e.: https://.azurewebsites.net/). This URL must be HTTPS.
KMSAppName <String> Specifies the application name on Azure KMS server that will be used to compose the URI for uploading the key
SerialNumber <String> Specifies the serial number that identifies the device
CacheAccessToken If specified, the access token is cached in msalcache.dat file and user credentials will not be asked again until the credentials expire.
This parameter should be specified for caching the access token when performing multiple operations on the KMS server.
If access token is not cached, the user must re-enter credentials on each call of this command.

Notes

  • Supported on Windows Power Shell v5.
  • Supported on Windows Power Shell v7.
  • An HP Sure Admin KMS server is required for using this feature.

Examples


PS C:\> Remove-HPSureAdminDevicePermissions -SerialNumber "XYZ123" -KMSAppName "MyAppName"

PS C:\> Remove-HPSureAdminDevicePermissions -SerialNumber "XYZ123" -KMSAppName "MyAppName" -CacheAccessToken