Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
exchange12rocks committed Feb 14, 2024
1 parent 5ebf871 commit 9f1083a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions docset/winserver2022-ps/smbshare/New-SmbShare.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ To delete a share that was created by this cmdlet, use the `Remove-SmbShare` cmd

```powershell
$Parameters = @{
Name = 'Public'
Path = 'D:\Public'
Name = 'VMSFiles'
Path = 'C:\ClusterStorage\Volume1\VMFiles'
FullAccess = 'Contoso\Administrator', 'Contoso\Contoso-HV1$'
}
New-SmbShare @Parameters
Expand All @@ -67,8 +67,8 @@ This command creates an encrypted SMB share.

```powershell
$Parameters = @{
Name = 'VMSFiles'
Path = 'C:\ClusterStorage\Volume1\VMFiles'
Name = 'Public'
Path = 'D:\Public'
ChangeAccess = 'CONTOSO\Finance Users','CONTOSO\HR Users'
FullAccess = 'Administrators'
}
Expand Down
10 changes: 5 additions & 5 deletions docset/winserver2025-ps/smbshare/New-SmbShare.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ To delete a share that was created by this cmdlet, use the `Remove-SmbShare` cmd

```powershell
$Parameters = @{
Name = 'Public'
Path = 'D:\Public'
Name = 'VMSFiles'
Path = 'C:\ClusterStorage\Volume1\VMFiles'
FullAccess = 'Contoso\Administrator', 'Contoso\Contoso-HV1$'
}
New-SmbShare @Parameters
Expand All @@ -67,15 +67,15 @@ This command creates an encrypted SMB share.

```powershell
$Parameters = @{
Name = 'VMSFiles'
Path = 'C:\ClusterStorage\Volume1\VMFiles'
Name = 'Public'
Path = 'D:\Public'
ChangeAccess = 'CONTOSO\Finance Users','CONTOSO\HR Users'
FullAccess = 'Administrators'
}
New-SmbShare @Parameters
```

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

Expand Down

0 comments on commit 9f1083a

Please sign in to comment.