Dismount method of the Win32_Volume class
The Dismount method dismounts a file system from a volume.
This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.
Syntax
uint32 Dismount(
[in] boolean Force = FALSE,
[in] boolean Permanent = FALSE
);
Parameters
-
Force [in]
-
If true, the volume is dismounted even if there are open handles. The default is false.
-
Permanent [in]
-
If true, the volume is dismounted to a no-automount, offline state. The volume may be returned to the automount state by explicitly calling the Mount method, or by creating a mount point for the volume. The default is false.
Return value
Return code | Description |
---|---|
|
Success |
|
Access Denied |
|
Volume Has Mount Points |
|
Volume Does Not Support The No-Autoremount State |
|
Force Option Required |
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2003 |
Namespace |
Root\CIMV2 |
Header |
|
MOF |
|
DLL |
|