< Back
Set-SecurityOption
Post
NAME Set-SecurityOption
SYNOPSIS
Set the value of a security option.
SYNTAX
Set-SecurityOption [-Name] <String> [-Value] <Object> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Set the value of a security option.
PARAMETERS
-Name <String>
The name of the security option to set.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Value <Object>
The value to set.
Required? true
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-SecurityOption EnableLUA Enabled
Enables the "User Account Control: Run all administrators in Admin Approval Mode" policy.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-SecurityOption LegalNoticeText ''
Sets the value of the LegalNoticeText policy to an empty string.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>
RELATED LINKS
SYNOPSIS
Set the value of a security option.
SYNTAX
Set-SecurityOption [-Name] <String> [-Value] <Object> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Set the value of a security option.
PARAMETERS
-Name <String>
The name of the security option to set.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-Value <Object>
The value to set.
Required? true
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Set-SecurityOption EnableLUA Enabled
Enables the "User Account Control: Run all administrators in Admin Approval Mode" policy.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Set-SecurityOption LegalNoticeText ''
Sets the value of the LegalNoticeText policy to an empty string.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>
RELATED LINKS