< Back
New-NsSmbShare
Post
NAME New-NsSmbShare
SYNOPSIS
Shares a filesystem using SMB
SYNTAX
New-NsSmbShare [-Path] <String> [-ShareName] <String> [-AccessBasedEnum] [-clientSideCaching <String>]
[-Encryption] [-GuestOk] [-Description <String>] [-ShareQuotas] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Shares a filesystem using SMB
PARAMETERS
-Path <String>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-ShareName <String>
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-AccessBasedEnum [<SwitchParameter>]
Enable Access based enumeration feature for the share
Required? false
Position? named
Default value False
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-clientSideCaching <String>
Required? false
Position? named
Default value manual
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Encryption [<SwitchParameter>]
Enable encryption for share
Required? false
Position? named
Default value False
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-GuestOk [<SwitchParameter>]
Enable guest access to share
Required? false
Position? named
Default value False
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Description <String>
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-ShareQuotas [<SwitchParameter>]
SMB quotas presented and supported
Required? false
Position? named
Default value False
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Share object if created
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-SmbShare -Path p2/top2 -ShareName "test-share_1" | ft
filesystem shareState shareName guestOk encryption accessBasedEnum shareDescription shareQuotas
clientSideCaching
---------- ---------- --------- ------- ---------- --------------- ---------------- -----------
-----------------
p2/top2 online test-share_1 False False False False manual
Create a share called test-share_1 on filesystem p2/top2
RELATED LINKS
SYNOPSIS
Shares a filesystem using SMB
SYNTAX
New-NsSmbShare [-Path] <String> [-ShareName] <String> [-AccessBasedEnum] [-clientSideCaching <String>]
[-Encryption] [-GuestOk] [-Description <String>] [-ShareQuotas] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
Shares a filesystem using SMB
PARAMETERS
-Path <String>
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-ShareName <String>
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-AccessBasedEnum [<SwitchParameter>]
Enable Access based enumeration feature for the share
Required? false
Position? named
Default value False
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-clientSideCaching <String>
Required? false
Position? named
Default value manual
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Encryption [<SwitchParameter>]
Enable encryption for share
Required? false
Position? named
Default value False
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-GuestOk [<SwitchParameter>]
Enable guest access to share
Required? false
Position? named
Default value False
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Description <String>
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-ShareQuotas [<SwitchParameter>]
SMB quotas presented and supported
Required? false
Position? named
Default value False
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
Share object if created
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>New-SmbShare -Path p2/top2 -ShareName "test-share_1" | ft
filesystem shareState shareName guestOk encryption accessBasedEnum shareDescription shareQuotas
clientSideCaching
---------- ---------- --------- ------- ---------- --------------- ---------------- -----------
-----------------
p2/top2 online test-share_1 False False False False manual
Create a share called test-share_1 on filesystem p2/top2
RELATED LINKS