API Reference
Command
Compare-CxSmbSecurity
Compares the effective SMB security posture of two computers.
Examples
Example 1: Compares two file servers before applying a hardening baseline.
PS>
Compare-CxSmbSecurity -ComputerA FS01 -ComputerB FS02
Example 2: Compares a production host with a reference build to confirm the SMB posture matches.
PS>
Compare-CxSmbSecurity -ComputerA APP01 -ComputerB GOLD-IMAGE-2025 | Format-List *
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
Compare-CxSmbSecurity -ComputerA <string> -ComputerB <string> [<CommonParameters>]#Parameters
- ComputerA string
- First computer to query for SMB security settings.
- ComputerB string
- Second computer to query for SMB security settings.
Outputs
ComputerX.Smb.SmbSecurityComparison