API Reference
Command
Set-CxSmbConfig
Sets SMB server/client security configuration (selected fields only).
Examples
Example 1
Set-CxSmbConfig -ServerSigningRequired $true -ClientAllowInsecureGuestAuth $false -RestrictAnonymous 1 -RestartLanmanServer
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-CxSmbConfig [-ComputerName <string>] [-AutoShareServer <bool>] [-AutoShareWks <bool>] [-ClientAllowInsecureGuestAuth <bool>] [-ClientSigningEnabled <bool>] [-ClientSigningRequired <bool>] [-EnableLmHosts <bool>] [-EnablePlainTextPassword <bool>] [-EveryoneIncludesAnonymous <bool>] [-LmCompatibilityLevel <int>] [-MergeNullLists] [-NodeType <int>] [-NullSessionPipes <string[]>] [-NullSessionShares <string[]>] [-RestartLanmanServer] [-RestrictAnonymous <int>] [-RestrictAnonymousSam <int>] [-ServerRestrictNullSessAccess <bool>] [-ServerSigningEnabled <bool>] [-ServerSigningRequired <bool>] [-ServerSmb1Enabled <bool>] [-ServerSmb2Enabled <bool>] [<CommonParameters>]#Parameters
- ComputerName string
- Target computer(s). Use '.' for local computer or provide DNS names.
- AutoShareServer bool
- Gets or sets the AutoShareServer parameter.
- AutoShareWks bool
- Gets or sets the AutoShareWks parameter.
- ClientAllowInsecureGuestAuth bool
- Gets or sets the ClientAllowInsecureGuestAuth parameter.
- ClientSigningEnabled bool
- Gets or sets the ClientSigningEnabled parameter.
- ClientSigningRequired bool
- Gets or sets the ClientSigningRequired parameter.
- EnableLmHosts bool
- Gets or sets the EnableLmHosts parameter.
- EnablePlainTextPassword bool
- Gets or sets the EnablePlainTextPassword parameter.
- EveryoneIncludesAnonymous bool
- Gets or sets the EveryoneIncludesAnonymous parameter.
- LmCompatibilityLevel int
- Gets or sets the LmCompatibilityLevel parameter.
- MergeNullLists SwitchParameter
- Gets or sets the MergeNullLists parameter.
- NodeType int
- Gets or sets the NodeType parameter.
- NullSessionPipes string[]
- Null session named pipes to apply (if provided).
- NullSessionShares string[]
- Null session shares to apply (if provided).
- RestartLanmanServer SwitchParameter
- Gets or sets the RestartLanmanServer parameter.
- RestrictAnonymous int
- Gets or sets the RestrictAnonymous parameter.
- RestrictAnonymousSam int
- Gets or sets the RestrictAnonymousSam parameter.
- ServerRestrictNullSessAccess bool
- Gets or sets the ServerRestrictNullSessAccess parameter.
- ServerSigningEnabled bool
- Gets or sets the ServerSigningEnabled parameter.
- ServerSigningRequired bool
- Gets or sets the ServerSigningRequired parameter.
- ServerSmb1Enabled bool
- Gets or sets the ServerSmb1Enabled parameter.
- ServerSmb2Enabled bool
- Gets or sets the ServerSmb2Enabled parameter.
Outputs
ComputerX.Smb.SmbConfigWriter+Result