PowerShell Logo Small

Remove-SmbMapping



This is the built-in help made by Microsoft for the command 'Remove-SmbMapping', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Removes the Server Message Block (SMB) mapping to an SMB share.

SYNTAX


Remove-SmbMapping [[-LocalPath] <String[]>] [[-RemotePath] <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-Force] [-PassThru] [-ThrottleLimit <Int32>] [-UpdateProfile]
[-Confirm] [-WhatIf] [<CommonParameters>]
Remove-SmbMapping [-AsJob] [-CimSession <CimSession[]>] [-Force] [-PassThru] [-ThrottleLimit <Int32>] [-UpdateProfile] -InputObject <CimInstance[]> [-Confirm] [-WhatIf]
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-SmbMapping cmdlet removes the Server Message Block (SMB) mapping to an SMB share.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=289650
Get-SmbMapping
New-SmbMapping

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Remove-SmbMapping -LocalPath Y:
Confirm
Are you sure you want to perform this action?
Performing operation 'Close-Connection' on Target 'Y:,\\Contoso-FS\VMS1'.
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):



This example removes an SMB mapping to an SMB share.




EXAMPLE 2

PS C:\>Remove-SmbMapping -RemotePath \\Contoso-SO\VMFiles -Force



This example removes an SMB mapping to an SMB share without user confirmation.