< Back

New-NfNfsShare

Sat Jan 18, 2020 5:07 pm

NAME New-NfNfsShare



SYNOPSIS

Shares a filesystem using NFS





SYNTAX

New-NfNfsShare [-Path] <String> [-SecurityModes <String[]>] [-Root <String[]>] [-ReadWrite <String[]>] [-ReadOnly

<String[]>] [-NoAccess <String[]>] [-Anonymous <String>] [-RootMap <String>] [-NoHide] [-Recursive] [-WhatIf]

[-Confirm] [<CommonParameters>]





DESCRIPTION

Shares a filesystem using NFS





PARAMETERS

-Path <String>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-SecurityModes <String[]>



Required? false

Position? named

Default value sys

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Root <String[]>



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ReadWrite <String[]>



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ReadOnly <String[]>



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-NoAccess <String[]>



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Anonymous <String>



Required? false

Position? named

Default value -1

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-RootMap <String>



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-NoHide [<SwitchParameter>]

Invoke to disable explicit mapping requirements for the client



Required? false

Position? named

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Recursive [<SwitchParameter>]

Invoke to apply share properties to nested folders



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-NfsShare -Path p1/top5 -ReadWrite "192.168.0.1","@192.168.1.0/24","ahost.local" -NoAccess

"domain:bad.guys" -Root "backup.local"



anon : -1

filesystem : p1/top5

mountPoint : /p1/top5

nohide : False

securityContexts : {@{readWriteList=System.Object[]; root=System.Object[]; none=System.Object[];

securityModes=System.Object[]}}

shareState : online



Create an nfs share on filesystem p2/top5











RELATED LINKS