Set-MceSecurityContext

SYNOPSIS#

Updates the properties of a security context.

SYNTAX#

Set-MceSecurityContext [-Id] <String> [[-DisplayName] <String>] [[-ForegroundColor] <String>]
[[-BackgroundColor] <String>] [[-IsEncryptionEnabled] <Boolean>] [<CommonParameters>]

DESCRIPTION#

This cmdlet updates individual properties of a security context.

The cmdlet is designed to support pipelining from Get-MceSecurityContext.

EXAMPLES#

EXAMPLE 1#

Set-MceSecurityContext -Id "4f55b2be-1c07-4fcb-8c66-db563fd46206" -DisplayName "Context One"

Updates the display name of a security context.

EXAMPLE 2#

Set-MceSecurityContext -Id "4f55b2be-1c07-4fcb-8c66-db563fd46206" -ForegroundColor "#FA23A1"

Updates the foreground color of a security context.

EXAMPLE 3#

Set-MceSecurityContext -Id "4f55b2be-1c07-4fcb-8c66-db563fd46206" -BackgroundColor "#FA23A1"

Updates the background color of a security context.

EXAMPLE 4#

Set-MceSecurityContext -Id "4f55b2be-1c07-4fcb-8c66-db563fd46206" -IsEncryptionEnabled $true

Updates whether encryption is enabled for the security context.

PARAMETERS#

-Id#

The user ID.

Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-DisplayName#

The security context display name.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ForegroundColor#

The security context foreground color.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-BackgroundColor#

The security context background color.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-IsEncryptionEnabled#

A value indicating whether encryption is enabled for the security context.

Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters#

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS#

System.String#

The user ID.

OUTPUTS#

None#

NOTES#

RELATED LINKS#

MindLink Docs