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?] 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.