Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrects New-SmbShare examples for WS2022/2025. Fixes #3711 #3747

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 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,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
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