< Back

Remove-NsNfsShare

Sat Jan 18, 2020 5:14 pm

NAME Remove-NsNfsShare



SYNOPSIS

Removes the NFS share froma filesystem





SYNTAX

Remove-NsNfsShare [-Path] <String> [-Recursive] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Removes the NFS share froma filesystem





PARAMETERS

-Path <String>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Recursive [<SwitchParameter>]

Invoke to force all nested datasets also to be unshared



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

True if the share is removed





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Remove-NfsShare -Path p1/top5 -Confirm:$false



True



Remove the share from p1/top5











RELATED LINKS