Skip to main content

Get-LXCARoleGroup

This cmdlet retrieves information about all or a specific role group.

Note
You cannot pipe objects to this cmdlet.

Syntax

Get-LXCARoleGroup [-Connection LXCAConnection] 
[-GroupName String]
[CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
-GroupName String
Specifies the name of the role group.
CommonParameters
This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.

Results

This cmdlet does returns a RoleGroup object.

Examples

  • The following example returns information for all role groups.

    $cred = Get-Credential
    Connect-LXCA -Host 192.0.2.0 -Credential $cred

    $roleGroups = Get-LXCARoleGroup

    Disconnect-LXCA
  • The following example returns information for a role group.

    $cred = Get-Credential
    Connect-LXCA -Host 192.0.2.0 -Credential $cred

    $roleGroup = Get-LXCARoleGroup –GroupName $name

    Disconnect-LXCA