AddMountPoint method of the Win32_Volume class
The AddMountPoint method adds a mount point directory for the volume. The result of this method is the creation of a Win32_MountPoint class associating this volume with the Win32_Directory instance representing the directory specified in the parameter list.
This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.
Syntax
uint32 AddMountPoint( [in] string Directory );
Parameters
- Directory [in]
-
Directory where the volume is to be mounted.
Return value
| Return code | Description |
|---|---|
|
Success |
|
Access Denied |
|
Invalid Argument |
|
Specified Directory Not Empty |
|
Specified Directory Not Found |
|
Volume Mount Points Not Supported |
|
Unknown Error |
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
