Online Help > PowerShell Scripting

Set-RDMSecurityGroupProperty

SYNOPSIS

Set the value of property given to a security group.

 

SYNTAX

Set-RDMSecurityGroupProperty -SecurityGroup [SecurityGroup] <PSSecurityGroupInfo> -Property [Property] <String> -Value [Value] <Object> [<CommonParameters>]

 

DESCRIPTION

Protected values will always return null.

 

PARAMETERS

  -SecurityGroup <PSSecurityGroupInfo>

(Required) Specifies the security group.

 

  -Property <String>

(Required) Property to set.

 

  -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-RDMSecurityGroupProperty -detailed". For technical information, type "Get-Help Set-RDMSecurityGroupProperty -full".

 

EXAMPLE 1

PS C:\> Set-RDMSecurityGroupProperty -SecurityGroup "$securityGroup" -Property "Description" -Value "My New Description"

 

Set the description value for the security group given.

 

EXAMPLE 2

PS C:\> $list = Get-RDMSecurityGroup; Set-RDMSecurityGroupProperty -Group $list[1] -Property "Description" -Value "My description"

 

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

 

RELATED LINKS

Get-RDMSecurityGroup

New-RDMSecurityGroup

Remove-RDMSecurityGroup

Set-RDMSecurityGroup

Set-RDMSecurityGroupProperty