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.