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 |
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
|
Minimum supported client | None supported [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Namespace |
\root\CIMV2 |
|
MOF |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 11/19/2012
