PowerShell Logo Small

New-SmbMapping



This is the built-in help made by Microsoft for the command 'New-SmbMapping', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 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 [<SwitchParameter>]] [-CimSession <CimSession[]>] [-HomeFolder
[<SwitchParameter>]] [-Password <String>] [-Persistent <Boolean>] [-SaveCredentials [<SwitchParameter>]] [-ThrottleLimit <Int32>] [-UserName
<String>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<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

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.