Skip to content

Commit 9f1083a

Browse files
1 parent 5ebf871 commit 9f1083a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docset/winserver2022-ps/smbshare/New-SmbShare.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ To delete a share that was created by this cmdlet, use the `Remove-SmbShare` cmd
4242

4343
```powershell
4444
$Parameters = @{
45-
Name = 'Public'
46-
Path = 'D:\Public'
45+
Name = 'VMSFiles'
46+
Path = 'C:\ClusterStorage\Volume1\VMFiles'
4747
FullAccess = 'Contoso\Administrator', 'Contoso\Contoso-HV1$'
4848
}
4949
New-SmbShare @Parameters
@@ -67,8 +67,8 @@ This command creates an encrypted SMB share.
6767

6868
```powershell
6969
$Parameters = @{
70-
Name = 'VMSFiles'
71-
Path = 'C:\ClusterStorage\Volume1\VMFiles'
70+
Name = 'Public'
71+
Path = 'D:\Public'
7272
ChangeAccess = 'CONTOSO\Finance Users','CONTOSO\HR Users'
7373
FullAccess = 'Administrators'
7474
}

docset/winserver2025-ps/smbshare/New-SmbShare.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ To delete a share that was created by this cmdlet, use the `Remove-SmbShare` cmd
4242

4343
```powershell
4444
$Parameters = @{
45-
Name = 'Public'
46-
Path = 'D:\Public'
45+
Name = 'VMSFiles'
46+
Path = 'C:\ClusterStorage\Volume1\VMFiles'
4747
FullAccess = 'Contoso\Administrator', 'Contoso\Contoso-HV1$'
4848
}
4949
New-SmbShare @Parameters
@@ -67,15 +67,15 @@ This command creates an encrypted SMB share.
6767

6868
```powershell
6969
$Parameters = @{
70-
Name = 'VMSFiles'
71-
Path = 'C:\ClusterStorage\Volume1\VMFiles'
70+
Name = 'Public'
71+
Path = 'D:\Public'
7272
ChangeAccess = 'CONTOSO\Finance Users','CONTOSO\HR Users'
7373
FullAccess = 'Administrators'
7474
}
7575
New-SmbShare @Parameters
7676
```
7777

78-
This command creates an SMB share named `VMSFiles` and grants Change permissions to the domain
78+
This command creates an SMB share named `Public` and grants Change permissions to the domain
7979
groups `CONTOSO\Finance Users` and `CONTOSO\HR Users`. Full Access permissions to the builtin
8080
`Administrators` group.
8181

0 commit comments

Comments
 (0)