TestimoX

API Reference

Command

Get-CxSmbConfig

Namespace ComputerX.PowerShell
Inputs
System.String
Outputs
ComputerX.Smb.SmbConfigInfo

Returns the effective SMB client and server configuration for a computer.

Examples

Authored help example

Example 1: Reads the local SMB configuration.

PS>


Get-CxSmbConfig
        

Example 2: Checks a file server before and after an SMB hardening change.

PS>


Get-CxSmbConfig -ComputerName FS01 | 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

Get-CxSmbConfig [-ComputerName <string>] [<CommonParameters>]
#

Parameters

ComputerName string optionalposition: 0pipeline: true (ByValue, ByPropertyName)
Target computer name. Use . for the local machine or provide a DNS/NetBIOS name. When omitted, the local computer is queried.

Outputs

ComputerX.Smb.SmbConfigInfo