Open
Description
This command creates an SMB share named Public not VMSFiles as discribed below. It also appears on older versions.
Example 1: Create an SMB share
$Parameters = @{
Name = 'Public'
Path = 'D:\Public'
FullAccess = 'Contoso\Administrator', 'Contoso\Contoso-HV1$'
}
New-SmbShare @Parameters
This command creates an SMB share named VMSFiles
and grants Full Access permissions to Contoso\Administrator
, and Contoso\Contoso-HV1$
.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 6dade7d8-f2c8-2ebe-6828-7ff5736f4da0
- Version Independent ID: bd1a3a35-9e2a-25c3-7387-d72fd31f4231
- Content: New-SmbShare (SmbShare)
- Content Source: docset/winserver2022-ps/smbshare/New-SmbShare.md
- Product: w10
- GitHub Login: @JasonGerend
- Microsoft Alias: jgerend