Examples Example 1: Create an SMB share PowerShell $Parameters= @{ Name ='VMSFiles'Path ='D:\Public'FullAccess ='Contoso\Administrator','Contoso\Contoso-HV1$'}New-SmbShare@Parameters This command creates an SMB share namedVMSFilesand grants Full Access permissions toContoso\Administrator, andCo...
ExamplesExample 1: Create an SMB sharePowerShell Kopiëren $Parameters = @{ Name = 'Public' Path = 'D:\Public' FullAccess = 'Contoso\Administrator', 'Contoso\Contoso-HV1$' } New-SmbShare @ParametersThis command creates an SMB share named VMSFiles and grants Full Access permissions to ...
ExamplesExample 1: Create an SMB sharePowerShell Copia $Parameters = @{ Name = 'Public' Path = 'D:\Public' FullAccess = 'Contoso\Administrator', 'Contoso\Contoso-HV1$' } New-SmbShare @ParametersThis command creates an SMB share named VMSFiles and grants Full Access permissions to ...
Examples Example 1 PowerShell $creds=Get-CredentialNew-SmbGlobalMapping-RemotePath"\\fs1.contoso.com\public"-Credential$creds-LocalPath"G:"Status Local Path Remote Path --- --- --- OK G: \\fs1.contoso.com\public This command will gather the...
The New-SmbMapping cmdlet creates a new Server Message Block (SMB) mapping on the SMB client to an SMB share. Examples EXAMPLE 1 PowerShell Copy PS C:\>New-SmbMapping -LocalPath X: -RemotePath \\Contoso-SO\VMFiles Status Local Path Remote Path --- --- --- OK X: \\Contoso-SO...
Examples EXAMPLE 1 PowerShell PS C:\>New-SmbShare-NameVMSFiles-PathC:\ClusterStorage\Volume1\VMFiles-FullAccessContoso\Administrator, Contoso\Contoso-HV1$ Name ScopeName Path Description --- --- --- --- VMSFilesContoso-SOC:\ClusterStorage\Volume1\... This example creates a new...
Examples Example 1: Create an SMB share PowerShell $Parameters= @{ Name ='Public'Path ='D:\Public'FullAccess ='Contoso\Administrator','Contoso\Contoso-HV1$'}New-SmbShare@Parameters This command creates an SMB share namedVMSFilesand grants Full Access permissions toContoso\Administrator, andConto...
ExamplesExample 1: Create an SMB mappingPowerShell 复制 New-SmbMapping -LocalPath "X:" -RemotePath "\\Contoso-SO\VMFiles" Status Local Path Remote Path --- --- --- OK X: \\Contoso-SO\VMFiles This command creates an SMB mapping.Parameters-AsJobRuns the cmdlet...
ExamplesExample 1: Create an SMB multi-channel constraint for an SMB serverPowerShell Копирај PS C:\>New-SmbMultichannelConstraint -ServerName "Contoso-SO" -InterfaceAlias "RDMA1", "RDMA2" Confirm Are you sure you want to perform this action? Performing operation 'New-Smb...
Examples Example 1 PowerShell $creds=Get-CredentialNew-SmbGlobalMapping-RemotePath"\\fs1.contoso.com\public"-Credential$creds-LocalPath"G:"Status Local Path Remote Path --- --- --- OK G: \\fs1.contoso.com\public This command will gather the...