- WMI Library -
WMI Libraly > Win32_MoveFileAction Class

Win32_MoveFileAction Class

The MoveFiles action allows the author to locate files that already exist on the user's machine, and move or copy those files to a new location.
Namespace value is root/CIMV2.
WMI Provider value is MSIProv.


  • ActionID
  • The ActionID property is a unique identifier assigned to a particular action for a software element.

  • Caption
  • Not applicable.

  • Description
  • A description of the object.

  • DestFolder
  • The name of a win32_Property whose value resolves to the full path to the destination directory.

  • DestName
  • This property contains the name to be given to the original file after it is moved or copied. If this field is blank, then the destination file is given the same name as the source file.

  • Direction
  • The Direction property indicates whether a particular CIM_Action object is part of a sequence of actions to transition the current software element to its next state, such as "Install" or to remove the current software element, such as "Uninstall".

  • FileKey
  • A unique key identifying this move file action within its product.

  • Name
  • Name is used to identify this software element

  • Options
  • Integer value specifying the operating mode. ) indicates a copy, 1 indicates a move.

  • SoftwareElementID
  • The SoftwareElementID is an identifier for this software element.

  • SoftwareElementState
  • The SoftwareElementState indicates the state of a software element

  • SourceFolder
  • This property contains the name of a Win32_Property having a value that resolves to the full path to the source directory. If the SourceName property is left blank, then the property named in the SourceFolder property is assumed to contain the full path to the source file itself (including the file name).

  • SourceName
  • This property contains the name of the source files to be moved or copied.
    This property may be left blank. See the description of the SourceFolder property. This field may contain wildcard characters (* and ?).

  • TargetOperatingSystem
  • The TargetOperatingSystem indicates the target operating system of the owning software element.

  • Version
  • Version should be in the form .. or ..


  • Invoke
  • The invoke method is to take a particular action. The details of how the method performs the action is implementation specific. The results of the method are based on the return value. - A 0 (zero) is returned if the condition is satisfied. - A 1 (one) is returned if the method is not supported. - Any other value indicates the condition is not satisfied.

    Example WQL

    SELECT * FROM Win32_MoveFileAction
    About this site information

    This contents is created by WMI having class information.
    WMI Environment is Windows Server 2008 R2 Enterprise Edition.

    This link is Microsoft documents for "Managing Windows with WMI".
    That is VB(Visual Basic) scripting sample.
    This link is Microsoft documents for "Advanced Programming Topics in WMI .NET".
    That is VB.net(Visual Basic .net) scripting sample.

    - WMI Library -

    WMI useful by VB,VB.Net,VC,VC.Net,VC#.Net,VBS(WSH),PowerShell for PC asset management, system monitoring and collecting hardware and software inventory.

    This website is created by Toh.
    Copyright(C) 1997-2016 WMI Fun !!. All rights reserved.
    ^ Go to the top...