Returns a selected user or group's access on all managed hosts in your environment.
Syntax:
Get-QHostsForTrustee [-TrusteeSid] <String> [-IncludeIndirectAccess] [<SwitchParameter>]] [<CommonParameters>]
Parameter | Description |
---|---|
TrusteeSid | Specify the security identifier (SID) of the account (trustee) whose access you are interested in. |
IncludeIndirectAccess |
(Optional) Specify this parameter if you want to include indirect access in the results. If this parameter is not specified, the results only includes the managed hosts where the specified account has direct access. |
Examples:
Example | Description |
---|---|
Get-QHostsForTrustee -TrusteeSid S-1-5-21-3765505745-248418262-535198764-500 | Returns a list of the managed hosts where the specified account has direct access. |
Details retrieved:
Detail | Description |
---|---|
HostName | The name of the host to which the account has access. |
HostDomainName | The full domain name of the domain to which the managed host computer belongs. |
ManagedHostId | The value (GUID) assigned to the managed host computer. |
ResourceType | The type of resource to which the account has access. |
ViaAccount | For indirect access, the name of the account through which access is being granted. |