For a given account (Domain\SAMAccountName), this cmdlet retrieves the account's resource access across all available hosts.
Note: This PowerShell cmdlet does not support Cloud managed hosts.
Syntax:
Get-QAccountAccessOnHosts [-AccountName] <String> [-AccountDomain] <String> [-ManagedHostList [<String>]] [-UriFilterPattern [<String>]] [-DirectOnly [<Switch Parameter>]] [-ResourceTypes [<String>]] [-OutputDirectory [<String>]] [-VerboseLogging [<Switch Parameter>]] [<CommonParameters>]
Parameter | Description |
---|---|
AccountName | Specify the name of the account to perform the access report on. |
AccountDomain | Specify the name of the domain to perform the access report on. |
ManagedHostList |
(Optional) Specify the managed hosts to be included in the report. If this parameter is not specified, all managed hosts are included. |
UriFilterPattern | (Optional) Specify a string to limit the report to only include resources whose URI contains the given text string. |
DirectOnly |
(Optional) Specify this parameter to exclude indirect access to a resource from the results. |
ResourceTypes |
(Optional) Specify the types of resources to be included in the report. Valid resource types are:
If this parameter is not specified, all resource types are included. |
OutputDirectory |
(Optional) Specify an absolute path to a directory where the results are to be saved. If the directory does not exist, it will be created. If this parameter is not specified, the results are only written to the PowerShell output stream. |
VerboseLogging |
(Optional) Specify this parameter to turn on verbose logging. |
Examples:
Example | Description |
---|---|
Get-QAccountAccessOnHosts -AccountName Administrator -AccountDomain MyDomain -ResourceTypes @("SharePoint", "Folders") -OutputDirectory "C:\log.txt" -VerboseLogging |
Retrieves all SharePoint and folder access for account "Administrator" in domain "MyDomain". Verbose logging is enabled and the results will be saved in C:\log.txt. |
Details retrieved:
Detail | Description |
---|---|
RightType | The access right type. |
ItemResourceType | The resource type. |
ResourceURI | The URI of the resource to which the trustee has access. |
TrusteeDisplayName | The display name of the trustee. |
TrusteeSid | The SID assigned to the account (trustee). |
HostName | The host where the resource resides. |
Rights | The specific access rights assigned. |
AppliesTo | What the rights apply to. |
Inheritance | The type of inheritance. |