Set-MceSecurityContext
SYNOPSIS
Updates the properties of a security context.
SYNTAX
Set-MceSecurityContext [-Id] <String> [[-DisplayName] <String>] [[-ForegroundColor] <String>]
[[-BackgroundColor] <String>] [[-IsEncryptionEnabled] <Boolean>] [[-SecureContentExport] <ControlStatus>]
[[-ContentCopying] <ControlStatus>] [<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 -SecureContentExport 'Enabled' -ContentCopying 'Disabled'
Updates whether encryption is enabled for the security context, enables secure content export and disables content copying.
PARAMETERS
-Id
The security context 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
-SecureContentExport
A value indicating the content control for secure content export of the security context.
Possible values: Inherited, Enabled, Disabled
Type: ControlStatus
Parameter Sets: (All)
Aliases:
Accepted values: Inherited, Enabled, Disabled
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ContentCopying
A value indicating the content control for content copying of the security context.
Possible values: Inherited, Enabled, Disabled
Type: ControlStatus
Parameter Sets: (All)
Aliases:
Accepted values: Inherited, Enabled, Disabled
Required: False
Position: 6
Default value: None
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 security context ID.