Skip to main content
SnapCenter 6.0 cmdlets

Remove-SdSMBShare

Contributors

Removes one or more SMB shares from your storage system.

Syntax

Remove-SdSMBShare [-Path]  <Object[]>  [-Session]  <String>  [-Host]  <String>

Detailed Description

Removes one or more SMB shares from your storage system.This cmdlet is supported in clustered Data ONTAP 8.2 and later.

Parameters

Name Description Required? Pipeline Input Default Value

Path

Specifies a comma-separated list of SMB shares.

true

true (ByPropertyName)

Session

Specifies the session ID from Open-SmConnection.

false

true (ByPropertyName)

Host

Specifies the name or IP address of the host on which you execute the operation. The default is your local machine.

false

true (ByPropertyName)

Examples

Example 1: Removing an SMB share

 PS C:\> Remove-SdSMBShare -Path \\JENKINS-CIFS\RemoveShare03 -Verbose

This example syntax removes SMB share "RemoveShare03" from your storage system.

Example 2: Removing multiple SMB shares

 PS C:\> Remove-SdSMBShare -Path \\JENKINS-CIFS\RemoveShare01,\\172.17.165.40\RemoveShare02 -Verbose

This example syntax removes SMB share "RemoveShare01," and "RemoveShare02" from the your storage system.