< Back

Get-SecurityOption

Wed Jan 15, 2020 2:30 am

NAME Get-SecurityOption



SYNOPSIS

Get the value of a security option.





SYNTAX

Get-SecurityOption [[-Name] <String[]>] [<CommonParameters>]





DESCRIPTION

Get the value of a security option.





PARAMETERS

-Name <String[]>

The name of the security option to set.



Required? false

Position? 2

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

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:\\>Get-SecurityOption 'Accounts: Administrator account status'



Gets the current value of the administrator account status policy (determined by the state of the account).









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-SecurityOption 'EnableLUA'



Get the value of the "User Account Control: Run all administrators in Admin Approval Mode" policy.











RELATED LINKS