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
0
Success
1
Access Denied
2
Volume Has Mount Points
3
Volume Does Not Support The No-Autoremount State
4
Force Option Required

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2003
Namespace
Root\CIMV2
Header
Vds.h
MOF
Vds.mof
DLL
Vdswmi.dll

See also

Win32_Volume