This topic has not yet been rated - Rate this topic

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 codeDescription
0

Success

1

Access Denied

2

Volume Has Mount Points

3

Volume Does Not Support The No-Autoremount State

4

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

Vds.mof

DLL

Vdswmi.dll

See also

Win32_Volume

 

 

Send comments about this topic to Microsoft

Build date: 11/19/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.