Search-HPSureAdminDevicePermissions



Summary

Searches device permissions on HP Sure Admin Key Management Service (KMS)

Syntax

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

Search-HPSureAdminDevicePermissions [-KMSUri] <String> [[-SerialNumber] <String>] [-UserEmail] <String> [[-CacheAccessToken]] [<CommonParameters>]

Search-HPSureAdminDevicePermissions [-KMSUri] <String> [[-SerialNumber] <String>] [-AADGroup] <String> [[-CacheAccessToken]] [<CommonParameters>]

Search-HPSureAdminDevicePermissions [-KMSUri] <String> [[-SerialNumber] <String>] [-AADGroup] <String> [-UserEmail] <String> [[-CacheAccessToken]] [<CommonParameters>]

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

Search-HPSureAdminDevicePermissions [-KMSAppName] <String> [[-SerialNumber] <String>] [-UserEmail] <String> [[-CacheAccessToken]] [<CommonParameters>]

Search-HPSureAdminDevicePermissions [-KMSAppName] <String> [[-SerialNumber] <String>] [-AADGroup] <String> [[-CacheAccessToken]] [<CommonParameters>]

Search-HPSureAdminDevicePermissions [-KMSAppName] <String> [[-SerialNumber] <String>] [-AADGroup] <String> [-UserEmail] <String> [[-CacheAccessToken]] [<CommonParameters>]

Description

Device permissions allow IT administrators to manage local access of specific devices without having to provision a unique LAK key for each one. This command retrieves from KMS the permissions set for the specified device serial number. 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
AADGroup <String> Specifies the group name in Azure Active Directory that will have access to the key
UserEmail <String> Specifies the user email in Azure Active Directory that will have access to the key
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:\> Search-HPSureAdminDevicePermissions -SerialNumber "XYZ123" -KMSAppName "MyAppName"

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