API Reference
Command
Set-CxSecurityOption
Sets CIS-relevant Local Security Options (registry-backed).
Examples
Example 1
Set-CxSecurityOption -LimitBlankPasswordUse:$true -LmCompatibility NTLMv2OnlyRefuseLMandNTLM
Example 2
Set-CxSecurityOption -ComputerName SERVER01 -RequireSmbSigningServer:$true -Smb1 0
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Set-CxSecurityOption [-ComputerName <string>] [-AllowInsecureGuestAuth <bool>] [-EveryoneIncludesAnonymous <int>] [-LimitBlankPasswordUse <bool>] [-LmCompatibility <LMandNTLM>] [-NoLmHash <bool>] [-NtlmMinClientSec <Sign|Seal|Require128|Require56>] [-NtlmMinServerSec <Sign|Seal|Require128|Require56>] [-NullSessionPipes <string[]>] [-NullSessionShares <string[]>] [-RequireSmbSigningClient <bool>] [-RequireSmbSigningServer <bool>] [-RestrictAnonymous <int>] [-RestrictAnonymousSAM <int>] [-Smb1 <int>] [<CommonParameters>]#Parameters
- ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- AllowInsecureGuestAuth bool
- Gets or sets the AllowInsecureGuestAuth parameter.
- EveryoneIncludesAnonymous int
- Gets or sets the EveryoneIncludesAnonymous parameter.
- LimitBlankPasswordUse bool
- Gets or sets the LimitBlankPasswordUse parameter.
- LmCompatibility LmCompatibilityLevel
- Gets or sets the LmCompatibility parameter. Possible values: LMandNTLM, LMandNTLMRefuseNTLMv2Session, NTLMv2Only, NTLMv2OnlyRefuseLM, NTLMv2OnlyRefuseLMandNTLM, NTLMv2OnlyRefuseLMandNTLMUseKerberos
- Possible values:
LMandNTLM,LMandNTLMRefuseNTLMv2Session,NTLMv2Only,NTLMv2OnlyRefuseLM,NTLMv2OnlyRefuseLMandNTLM,NTLMv2OnlyRefuseLMandNTLMUseKerberos - NoLmHash bool
- Gets or sets the NoLmHash parameter.
- NtlmMinClientSec NtlmSspFlags
- Gets or sets the NtlmMinClientSec parameter. Possible values: None, Sign, Seal, Require128, Require56
- Possible values:
Sign,Seal,Require128,Require56 - NtlmMinServerSec NtlmSspFlags
- Gets or sets the NtlmMinServerSec parameter. Possible values: None, Sign, Seal, Require128, Require56
- Possible values:
Sign,Seal,Require128,Require56 - NullSessionPipes string[]
- Server null session named pipes list. Replaces only if provided.
- NullSessionShares string[]
- Server null session shares list (SMB). Replaces only if provided.
- RequireSmbSigningClient bool
- Gets or sets the RequireSmbSigningClient parameter.
- RequireSmbSigningServer bool
- Gets or sets the RequireSmbSigningServer parameter.
- RestrictAnonymous int
- Gets or sets the RestrictAnonymous parameter.
- RestrictAnonymousSAM int
- Gets or sets the RestrictAnonymousSAM parameter.
- Smb1 int
- Gets or sets the Smb1 parameter.