Skip to main content
Version: 2.2.1-preview

Invoke-MtSysvolProcess

SYNOPSIS​

Runs the native smbclient process with a timeout.

SYNTAX​

Invoke-MtSysvolProcess [-Arguments] <String[]> [-TimeoutSeconds] <Int32> [-ProgressAction <ActionPreference>]
[<CommonParameters>]

DESCRIPTION​

Starts smbclient directly without a command shell, captures its output, terminates it when the timeout expires, and returns a normalized result.

EXAMPLES​

EXAMPLE 1​

Invoke-MtSysvolProcess -Arguments @('//dc/SYSVOL', '--kerberos', '--command', 'ls') -TimeoutSeconds 60

PARAMETERS​

-Arguments​

Individual smbclient arguments.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-TimeoutSeconds​

Maximum process duration.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction​

Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters​

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS​

OUTPUTS​

System.Management.Automation.PSObject​

NOTES​