Retrieving vCloud users
You can use the Get-CIUser
cmdlet to retrieve vCloud users. The Get-CIUser
cmdlet has an alias Get-PIUser
.
The syntax of the Get-CIUser
cmdlet is as follows and the first parameter set is the default:
Get-CIUser [[-Name] <String[]>] [-Org <Org[]>] [-Role <CIRole[]>]
[-Server <CIServer[]>] [<CommonParameters>]
The second parameter set is to retrieve vCloud users by ID:
Get-CIUser -Id <String[]> [-Server <CIServer[]>] [<CommonParameters>]
The -Id
parameter is required.
In the following example, we will retrieve the user student501@vcahol.com
and format the output in a list view:
PowerCLI C:\> Get-CIUser -Name student501@vcahol.com | Format-List WARNING: PowerCLI scripts should not use the 'Client' property. The property will ...
Get Learning PowerCLI - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.