TestimoX

API Reference

Command

Get-CxSmbShare

Namespace ComputerX.PowerShell
Inputs
System.String
Outputs
ComputerX.FileSystem.SmbShareInfo

Returns SMB share inventory for a computer.

Examples

Authored help example

Example 1: Lists local SMB shares.

PS>


Get-CxSmbShare
        

Example 2: Queries a file server and filters out the hidden administrative shares.

PS>


Get-CxSmbShare -ComputerName FS01 | Where-Object Name -notlike '*$'
        

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-CxSmbShare [-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.FileSystem.SmbShareInfo