TestimoX

API Reference

Command

Compare-CxSmbSecurity

Namespace ComputerX.PowerShell
Outputs
ComputerX.Smb.SmbSecurityComparison

Compares the effective SMB security posture of two computers.

Examples

Authored help example

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 requiredposition: 0pipeline: false
First computer to query for SMB security settings.
ComputerB string requiredposition: 1pipeline: false
Second computer to query for SMB security settings.

Outputs

ComputerX.Smb.SmbSecurityComparison