powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-VIRole



NAME
Get-VIRole

SYNOPSIS
Retrieves all roles defined on the provided servers.

SYNTAX
Get-VIRole [[-Name] ] [-Id ] [-Server ] []


DESCRIPTION
Retrieves all roles defined on the provided servers.


PARAMETERS
-Name
Specify the names of the roles you want to retrieve.

Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Id
Specify the Ids of the roles you want to retrieve.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
Role


NOTES




-------------- Example 1 --------------

C:\PS>Get-VIRole -Server $server -Name "Admin*"


Retrieves all roles on the specified server with names that start with "Admin".






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Get-VIRole.html
New-VIRole
Remove-VIRole
Set-VIRole
Get-VIPrivilege
Get-VIPermission
New-VIPermission
Remove-VIPermission
Set-VIPermission