powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-VIPrivilege



NAME
Get-VIPrivilege

SYNOPSIS
Retrieve the privilege groups and items for the provided servers.

SYNTAX
Get-VIPrivilege [-PrivilegeGroup] [-PrivilegeItem] [[-Name] ] [-Id ] [-Server ] [ ommonParameters>]

Get-VIPrivilege [[-Name] ] [-Role] [-Id ] []

Get-VIPrivilege [[-Name] ] [-Group] [-Id ] []


DESCRIPTION
Retrieve the privilege groups and items for the provided servers.


PARAMETERS
-PrivilegeGroup
Indicate that you want to retrieve only the privilege groups and not the privilege items in them.

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

-PrivilegeItem
Indicate that you want to retrieve only the privilege items and not the privilege groups.

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

-Name
Specify the names of the privileges you want to retrieve.

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

-Id
Specify the Ids of the privileges 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

-Role
Specify the roles whose privileges you want to retrieve.

Required? false
Position? 2
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Group
Specify the privilege group whose items you want to retrieve.

Required? false
Position? 2
Default value
Accept pipeline input? true (ByValue)
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
Privilege


NOTES




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

C:\PS>Get-VIPrivilege -Name "Host*"


Retrieves all privileges with names that start with "Host".





-------------- Example 2 --------------

C:\PS>Get-VIPrivilege -PrivilegeGroup


Retrieves all privilege groups.






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