Disconnect-SmbShare
PackageDeployment Module Help |
Package Deployment Module |
Disconnect-SmbShare Cmdlet |
Version 4.0.0.5 |
Disconnect-SmbShare
Synopsis
Disconnects a connected network drive
Disconnect-SmbShare [-Drive] <String> [-SafeOnly] [[-Context] <String>] [-PreventUninstall] [-ContinueOnError] [<CommonParameters>]
Description
Disconnects a connected network drive.
Parameters
-Drive <String> |
||||||
The drive letter of the drive to be disconnected. |
||||||
|
-SafeOnly <SwitchParameter> |
||||||
If specified, the drive will only be disconnected if no files are open on the drive anymore |
||||||
|
-Context <String> |
||||||
User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user. |
||||||
|
-PreventUninstall <SwitchParameter> |
||||||
If used, the drive will not be disconnected during uninstall |
||||||
|
-ContinueOnError <SwitchParameter> |
||||||
If switch is used the script won't abort if an error occurs |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |