Remove-Share
PackageDeployment Module Help |
Package Deployment Module |
Remove-Share Cmdlet |
Version 4.0.0.5 |
Remove-Share
Synopsis
Deletes a local or remote file share.
Syntax
Remove-Share [-ServerName] <String> [-ShareName] <String> [[-Context] <String>] [-ContinueOnError] [<CommonParameters>]
Description
Deletes a local or remote SMB share.
Parameters
-ServerName <String> |
||||||
Name of the machine on which the share is to be deleted. |
||||||
|
-ShareName <String> |
||||||
Name of the share that will be deleted. |
||||||
|
-Context <String> |
||||||
User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user. |
||||||
|
-ContinueOnError <SwitchParameter> |
||||||
Continues script execution in spite of errors in the respective command |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |