PowerShell Logo Small

New-SmbMapping



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

Creates a new Server Message Block (SMB) mapping.

SYNTAX


New-SmbMapping [[-LocalPath] <String>] [[-RemotePath] <String>] [-AsJob] [-CimSession <CimSession[]>] [-HomeFolder] [-Password <String>] [-Persistent <Boolean>]
[-SaveCredentials] [-ThrottleLimit <Int32>] [-UserName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The New-SmbMapping cmdlet creates a new Server Message Block (SMB) mapping on the SMB client to an SMB share.



<

RELATED LINKS

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

REMARKS

<

Examples


EXAMPLE 1

PS C:\>New-SmbMapping -LocalPath X: -RemotePath \\Contoso-SO\VMFiles
Status Local Path Remote Path
------ ---------- -----------
OK X: \\Contoso-SO\VMFiles



This example creates a new SMB mapping.




EXAMPLE 2

PS C:\>New-SmbMapping Y: -RemotePath \\Contoso-FS\VMS1
Status Local Path Remote Path
------ ---------- -----------
OK Y: \\Contoso-FS\VMS1



This example creates a new SMB mapping.