PowerShell Logo Small

Get-SmbMapping



This is the built-in help made by Microsoft for the command 'Get-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

Retrieves the Server Message Block (SMB) client directory mappings created for a server.

SYNTAX


Get-SmbMapping [[-LocalPath] <String[]>] [[-RemotePath] <String[]>] [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-SmbMapping cmdlet retrieves the Server Message Block (SMB) client directory mappings created for a server. This can be a mapping from a local drive letter to a
remote shared folder, or it can be a mapping without a local path.



<

RELATED LINKS

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

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Get-SmbMapping
Status Local Path Remote Path
------ ---------- -----------
OK X: \\Contoso-SO\VMFiles
OK Y: \\Contoso-FS\VMS1



This example retrieves the SMB client directory mappings created for the SMB server.




EXAMPLE 2

PS C:\>Get-SmbMapping -LocalPath X: | Select-Object - Property *
Status : OK
LocalPath : X:
RemotePath : \\Contoso-SO\VMFiles
PSComputerName :
CimClass : ROOT/Microsoft/Windows/SMB:MSFT_SmbMapping
CimInstanceProperties : {LocalPath, RemotePath, Status}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties



This example retrieves the SMB client directory mapping for the X: directory created for the SMB server.