Online Help > PowerShell Scripting

Set-RDMRoleProperty

SYNOPSIS

Set the value of property given to a role.

 

SYNTAX

Set-RDMRoleProperty -Property [Property] <String> -Role [Role] <PSRoleInfo> -Value [Value] <Object> [<CommonParameters>]

 

DESCRIPTION

Set the value of property given to a role.

 

PARAMETERS

  -Property <String>

(Required) Property to set.

 

  -Role <PSRoleInfo>

(Required) Specifies the ID of the session to get the password from.

 

Must be a valid GUID, in the form {00000000-0000-0000-0000-000000000000}.

 

  -Value <Object>

(Required) New value.

 

  <CommonParameters>

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

 

NOTES

For more information, type "Get-Help Set-RDMRoleProperty -detailed". For technical information, type "Get-Help Set-RDMRoleProperty -full".

 

EXAMPLE 1

PS C:\> Set-RDMRoleProperty -Role "$role"-Property "Description" -Value "My New Description"

 

Set the description value for the role given.

 

EXAMPLE 2

PS C:\> $list = Get-RDMRole; Set-RDMRoleProperty -Role $list[1] -Property "Description" -Value "My description"

 

Retrieves the list of available role and then sets the description value of the the second element in the list.

 

RELATED LINKS

Get-RDMRole

New-RDMRole

New-RDMRole

Remove-RDMRole