From 9f1083a44b833f79a383cad1f6724f565beeb18c Mon Sep 17 00:00:00 2001 From: Kirill Nikolaev Date: Wed, 14 Feb 2024 10:41:51 +0200 Subject: [PATCH] Fixes #3711 --- docset/winserver2022-ps/smbshare/New-SmbShare.md | 8 ++++---- docset/winserver2025-ps/smbshare/New-SmbShare.md | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docset/winserver2022-ps/smbshare/New-SmbShare.md b/docset/winserver2022-ps/smbshare/New-SmbShare.md index 65d43f96ac..d88b030ef8 100644 --- a/docset/winserver2022-ps/smbshare/New-SmbShare.md +++ b/docset/winserver2022-ps/smbshare/New-SmbShare.md @@ -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 @@ -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' } diff --git a/docset/winserver2025-ps/smbshare/New-SmbShare.md b/docset/winserver2025-ps/smbshare/New-SmbShare.md index 1090059aaa..39a6bfa85d 100644 --- a/docset/winserver2025-ps/smbshare/New-SmbShare.md +++ b/docset/winserver2025-ps/smbshare/New-SmbShare.md @@ -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 @@ -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.