CIM_DeviceFile, ROOT\CIMV2\ms_409

Class | Methods (14) | Properties (31) | Qualifiers (3) | Instances | Namespaces (2)
Samples: VB Script | C# | VB.Net | Search on:Microsoft

Description

A device file is a special type of logical file that represents a device. This convention is useful for some operating systems that manage devices using a byte stream I/O model. The logical device that is associated with this file is specified using the CIM_DeviceAccessedByFile relationship.

CIM_DeviceFile methods

CIM_DeviceFile has 14 methods (14 Derived)

NameOriginReturn
ChangeSecurityPermissionsCIM_LogicalFileuint32 {'out':True}
ChangeSecurityPermissionsExCIM_LogicalFileuint32 {'out':True}
CompressCIM_LogicalFileuint32 {'out':True}
CompressExCIM_LogicalFileuint32 {'out':True}
CopyCIM_LogicalFileuint32 {'out':True}
CopyExCIM_LogicalFileuint32 {'out':True}
DeleteCIM_LogicalFileuint32 {'out':True}
DeleteExCIM_LogicalFileuint32 {'out':True}
GetEffectivePermissionCIM_LogicalFileboolean {'out':True}
RenameCIM_LogicalFileuint32 {'out':True}
TakeOwnerShipCIM_LogicalFileuint32 {'out':True}
TakeOwnerShipExCIM_LogicalFileuint32 {'out':True}
UncompressCIM_LogicalFileuint32 {'out':True}
UncompressExCIM_LogicalFileuint32 {'out':True}

CIM_DeviceFile properties

CIM_DeviceFile has 31 properties (31 Derived)

NameOriginCIMType
AccessMaskCIM_LogicalFile19 [uint32]
ArchiveCIM_LogicalFile11 [boolean]
CaptionCIM_ManagedSystemElement8 [string]
CompressedCIM_LogicalFile11 [boolean]
CompressionMethodCIM_LogicalFile8 [string]
CreationClassNameCIM_LogicalFile8 [string]
CreationDateCIM_LogicalFile101 [datetime]
CSCreationClassNameCIM_LogicalFile8 [string]
CSNameCIM_LogicalFile8 [string]
DescriptionCIM_ManagedSystemElement8 [string]
DriveCIM_LogicalFile8 [string]
EightDotThreeFileNameCIM_LogicalFile8 [string]
EncryptedCIM_LogicalFile11 [boolean]
EncryptionMethodCIM_LogicalFile8 [string]
ExtensionCIM_LogicalFile8 [string]
FileNameCIM_LogicalFile8 [string]
FileSizeCIM_LogicalFile21 [uint64]
FileTypeCIM_LogicalFile8 [string]
FSCreationClassNameCIM_LogicalFile8 [string]
FSNameCIM_LogicalFile8 [string]
HiddenCIM_LogicalFile11 [boolean]
InstallDateCIM_ManagedSystemElement101 [datetime]
InUseCountCIM_LogicalFile21 [uint64]
LastAccessedCIM_LogicalFile101 [datetime]
LastModifiedCIM_LogicalFile101 [datetime]
key
Name
CIM_ManagedSystemElement8 [string]
PathCIM_LogicalFile8 [string]
ReadableCIM_LogicalFile11 [boolean]
StatusCIM_ManagedSystemElement8 [string]
SystemCIM_LogicalFile11 [boolean]
WriteableCIM_LogicalFile11 [boolean]

Detailed description of CIM_DeviceFile methods

Derived methods (14) of CIM_DeviceFile class

ChangeSecurityPermissions method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
SecurityDescriptorobject:Win32_SecurityDescriptor0-{'Description':'The SecurityDescriptor input parameter specifies the security information','In':True}
Optionuint321-{'BitValues':['Change_Owner_Security_Information', 'Change_Group_Security_Information', 'Change_Dacl_Security_Information', 'Change_Sacl_Security_Information'],'Description':'The Option input parameter specifies the actual security privilege to be modified. Change_Owner_Security_Information - Change the owner of the logical file. Change_Group_Security_Information - Change the group of the logical file. Change_Dacl_Security_Information - Change the Access Control List of the logical file. Change_Sacl_Security_Information - Change the System Access Control List of the logical file.','In':True}
Description'The ChangeSecurityPermissions method changes the security permissions for the logical file specified in the object path. If the logical file is actually a directory, then ChangeSecurityPermissions will act recursively, changing the security permissions of all the files and sub-directories the directory contains. ChangeSecurityPermissions returns an integer value of 0 if the permissions were changed, and any other number to indicate an error.
It returns one of the following integer values:
0 - The request was successful.
2 - Access was denied.
8 - An unspecified failure occurred.
9 - The name specified was invalid.
10 - The object specified already exists.
11 - The file system is not NTFS.
12 - The platform is not Windows NT or Windows 2000.
13 - The drive is not the same.
14 - The directory is not empty.
15 - There has been a sharing violation.
16 - The start file specified was invalid.
17 - A privilege required for the operation is not held.
21 - A parameter specified is invalid.
'
Values['Success', 'Access Denied', 'Unspecified failure', 'Invalid object', 'Object already exists', 'File system not NTFS', 'Platform not NT/Windows 2000', 'Drive not the same', 'Directory not empty', 'Sharing violation', 'Invalid start file', 'Privilege not held', 'Invalid parameter']
ChangeSecurityPermissions method is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
ChangeSecurityPermissionsEx method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
SecurityDescriptorobject:Win32_SecurityDescriptor0-{'Description':'The SecurityDescriptor input parameter specifies the security information.','in':True}
Optionuint321-{'BitValues':['Change_Owner_Security_Information', 'Change_Group_Security_Information', 'Change_Dacl_Security_Information', 'Change_Sacl_Security_Information'],'Description':'The Option input parameter specifies the actual security permission to be modified. Change_Owner_Security_Information - Change the owner of the logical file. Change_Group_Security_Information - Change the group of the logical file. Change_Dacl_Security_Information - Change the Access Control List of the logical file. Change_Sacl_Security_Information - Change the System Access Control List of the logical file.','In':True}
StopFileNamestring2-{'Description':'The StopFileName output parameter is a string representing the name of the file/directory where ChangeSecurityPermissionsEx failed. StopFileName will be null if the method succeeds.','Out':True}
StartFileNamestring3-{'Description':'The StartFileName input parameter is a string representing the child file/directory to use as a starting point for ChangeSecurityPermissionsEx.The StartFileName property typically, is the StopFileName parameter specifying the file or directory at which anerror occurred from the previous method call. If this parameter is NULL, the operation is performed on the file ordirectory specified in the ExecMethod call.','In':True}
Recursiveboolean4-{'Description':'The Recursive input parameter is a boolean that indicates whether the security permissions will be applied recursively to files and directories within the directory specified by the CIM_LogicalFile instance.Note for file instances the Recursive input parameter is ignored.','In':True}
Description'The ChangeSecurityPermissionsEx method changes the security permissions for the logical file specified in the object path. If the logical file is actually a directory, then this method will act recursively, changing the security permissions of all the files and sub-directories the directory contains. ChangeSecurityPermissionsEx returns an integer value of 0 if the permissions were changed, and any other number to indicate an error. The ChangeSecurityPermissionsEx method is an extended version of the ChangeSecurityPermissions method.
It returns one of the following integer values:
0 - The request was successful.
2 - Access was denied.
8 - An unspecified failure occurred.
9 - The name specified was invalid.
10 - The object specified already exists.
11 - The file system is not NTFS.
12 - The platform is not Windows NT or Windows 2000.
13 - The drive is not the same.
14 - The directory is not empty.
15 - There has been a sharing violation.
16 - The start file specified was invalid.
17 - A privilege required for the operation is not held.
21 - A parameter specified is invalid.
'
Values['Success', 'Access Denied', 'Unspecified failure', 'Invalid object', 'Object already exists', 'File system not NTFS', 'Platform not NT/Windows 2000', 'Drive not the same', 'Directory not empty', 'Sharing violation', 'Invalid start file', 'Privilege not held', 'Invalid parameter']
ChangeSecurityPermissionsEx method is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
Compress method
Returnuint32 {'out':True}
Description'The Compress method compresses the logical file (or directory) specified in the object path. Compress returns an integer value of 0 if the file was successfully compressed, and any other number to indicate an error.
It returns one of the following integer values:
0 - The request was successful.
2 - Access was denied.
8 - An unspecified failure occurred.
9 - The name specified was invalid.
10 - The object specified already exists.
11 - The file system is not NTFS.
12 - The platform is not Windows NT or Windows 2000.
13 - The drive is not the same.
14 - The directory is not empty.
15 - There has been a sharing violation.
16 - The start file specified was invalid.
17 - A privilege required for the operation is not held.
21 - A parameter specified is invalid.
'
Values['Success', 'Access Denied', 'Unspecified failure', 'Invalid object', 'Object already exists', 'File system not NTFS', 'Platform not NT/Windows 2000', 'Drive not the same', 'Directory not empty', 'Sharing violation', 'Invalid start file', 'Privilege not held', 'Invalid parameter']
Compress method is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
CompressEx method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
StopFileNamestring0-{'Description':'The StopFileName output parameter is a string representing the name of the file/directory where CompressEx failed. StopFileName will be null if the method succeeds.','Out':True}
StartFileNamestring1-{'Description':'The StartFileName input parameter is a string that names the child file/directory to use as a starting point for CompressEx.The StartFileName property typically, is the StopFileName parameter specifying the file or directory at which anerror occurred from the previous method call. If this parameter is NULL, the operation is performed on the file ordirectory specified in the ExecMethod call.','In':True}
Recursiveboolean2-{'Description':'The Recursive input parameter is a boolean that indicates whether the compression will be applied recursively to files and directories within the directory specified by the CIM_LogicalFile instance.Note for file instances the Recursive input parameter is ignored.','In':True}
Description'The CompressEx method compresses the logical file (or directory) specified in the object path. CompressEx returns an integer value of 0 if the file was successfully compressed, and any other number to indicate an error. CompressEx is an extended version of the Compress method.
It returns one of the following integer values:
0 - The request was successful.
2 - Access was denied.
8 - An unspecified failure occurred.
9 - The name specified was invalid.
10 - The object specified already exists.
11 - The file system is not NTFS.
12 - The platform is not Windows NT or Windows 2000.
13 - The drive is not the same.
14 - The directory is not empty.
15 - There has been a sharing violation.
16 - The start file specified was invalid.
17 - A privilege required for the operation is not held.
21 - A parameter specified is invalid.
'
Values['Success', 'Access Denied', 'Unspecified failure', 'Invalid object', 'Object already exists', 'File system not NTFS', 'Platform not NT/Windows 2000', 'Drive not the same', 'Directory not empty', 'Sharing violation', 'Invalid start file', 'Privilege not held', 'Invalid parameter']
CompressEx method is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
Copy method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
FileNamestring0-{'Description':'The FileName input parameter is a string representing the fully qualified name of the copy of the file (or directory). Example: c:\temp\newdirectory','In':True}
Description'The Copy method copies the logical file or directory specified in the object path to the location specified by the input parameter. Copy returns an integer value of 0 if the file was successfully copied, and any other number to indicate an error. A copy is not supported if overwriting an existing logical file is required.
It returns one of the following integer values:
0 - The request was successful.
2 - Access was denied.
8 - An unspecified failure occurred.
9 - The name specified was invalid.
10 - The object specified already exists.
11 - The file system is not NTFS.
12 - The platform is not Windows NT or Windows 2000.
13 - The drive is not the same.
14 - The directory is not empty.
15 - There has been a sharing violation.
16 - The start file specified was invalid.
17 - A privilege required for the operation is not held.
21 - A parameter specified is invalid.
'
Values['Success', 'Access Denied', 'Unspecified failure', 'Invalid object', 'Object already exists', 'File system not NTFS', 'Platform not NT/Windows 2000', 'Drive not the same', 'Directory not empty', 'Sharing violation', 'Invalid start file', 'Privilege not held', 'Invalid parameter']
Copy method is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
CopyEx method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
FileNamestring0-{'Description':'The FileName input parameter is a string representing the fully qualified name of the copy of the file (or directory). Example: c:\temp\newdirectory.','In':True}
StopFileNamestring1-{'Description':'The StopFileName output parameter is a string representing the name of the file/directory where CopyEx failed. This string parameter will be null if the method succeeds.','Out':True}
StartFileNamestring2-{'Description':'The StartFileName input parameter is a string that names the child file/directory to use as a starting point for CopyEx.The StartFileName property typically, is the StopFileName parameter specifying the file or directory at which anerror occurred from the previous method call. If this parameter is NULL, the operation is performed on the file ordirectory specified in the ExecMethod call.','In':True}
Recursiveboolean3-{'Description':'The Recursive input parameter is a boolean that indicates whether the copy will be applied recursively to files and directories within the directory specified by the CIM_LogicalFile instance.Note for file instances the Recursive input parameter is ignored.','In':True}
Description'The CopyEx method copies the logical file or directory specified in the object path to the location specified by the FileName parameter. CopyEx returns an integer value of 0 if the file was successfully copied, and any other number to indicate an error. A copy is not supported if overwriting an existing logical file is required. CopyEx is an extended version of the Copy method.
It returns one of the following integer values:
0 - The request was successful.
2 - Access was denied.
8 - An unspecified failure occurred.
9 - The name specified was invalid.
10 - The object specified already exists.
11 - The file system is not NTFS.
12 - The platform is not Windows NT or Windows 2000.
13 - The drive is not the same.
14 - The directory is not empty.
15 - There has been a sharing violation.
16 - The start file specified was invalid.
17 - A privilege required for the operation is not held.
21 - A parameter specified is invalid.
'
Values['Success', 'Access Denied', 'Unspecified failure', 'Invalid object', 'Object already exists', 'File system not NTFS', 'Platform not NT/Windows 2000', 'Drive not the same', 'Directory not empty', 'Sharing violation', 'Invalid start file', 'Privilege not held', 'Invalid parameter']
CopyEx method is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
Delete method
Returnuint32 {'out':True}
Description'The Delete method will delete the logical file (or directory) specified in the object path. Delete returns an integer value of 0 if the file was successfully deleted, and any other number to indicate an error.
It returns one of the following integer values:
0 - The request was successful.
2 - Access was denied.
8 - An unspecified failure occurred.
9 - The name specified was invalid.
10 - The object specified already exists.
11 - The file system is not NTFS.
12 - The platform is not Windows NT or Windows 2000.
13 - The drive is not the same.
14 - The directory is not empty.
15 - There has been a sharing violation.
16 - The start file specified was invalid.
17 - A privilege required for the operation is not held.
21 - A parameter specified is invalid.
'
Values['Success', 'Access Denied', 'Unspecified failure', 'Invalid object', 'Object already exists', 'File system not NTFS', 'Platform not NT/Windows 2000', 'Drive not the same', 'Directory not empty', 'Sharing violation', 'Invalid start file', 'Privilege not held', 'Invalid parameter']
Delete method is in 14 classes of ROOT\CIMV2\ms_409 and in 11 namespaces
DeleteEx method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
StopFileNamestring0-{'Description':'The StopFileName output parameter is a string representing the name of the file/directory where DeleteEx failed. This string parameter will be null if DeleteEx succeeds.','Out':True}
StartFileNamestring1-{'Description':'The StartFileName input parameter is a string that names the child file/directory to use as a starting point for DeleteEx.The StartFileName property typically, is the StopFileName parameter specifying the file or directory at which anerror occurred from the previous method call. If this parameter is NULL, the operation is performed on the file ordirectory specified in the ExecMethod call.','In':True}
Description'The DeleteEx method will delete the logical file (or directory) specified in the object path. DeleteEx returns an integer value of 0 if the file was successfully deleted, and any other number to indicate an error. DeleteEx is an extended version of the Delete method.
It returns one of the following integer values:
0 - The request was successful.
2 - Access was denied.
8 - An unspecified failure occurred.
9 - The name specified was invalid.
10 - The object specified already exists.
11 - The file system is not NTFS.
12 - The platform is not Windows NT or Windows 2000.
13 - The drive is not the same.
14 - The directory is not empty.
15 - There has been a sharing violation.
16 - The start file specified was invalid.
17 - A privilege required for the operation is not held.
21 - A parameter specified is invalid.
'
Values['Success', 'Access Denied', 'Unspecified failure', 'Invalid object', 'Object already exists', 'File system not NTFS', 'Platform not NT/Windows 2000', 'Drive not the same', 'Directory not empty', 'Sharing violation', 'Invalid start file', 'Privilege not held', 'Invalid parameter']
DeleteEx method is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
GetEffectivePermission method
Returnboolean {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
Permissionsuint320-{'BitValues':['FILE_READ_DATA (file) or FILE_LIST_DIRECTORY (directory)', 'FILE_WRITE_DATA (file) or FILE_ADD_FILE (directory)', 'FILE_APPEND_DATA (file) or FILE_ADD_SUBDIRECTORY (directory)', 'FILE_READ_EA', 'FILE_WRITE_EA', 'FILE_EXECUTE (file) or FILE_TRAVERSE (directory)', 'FILE_DELETE_CHILD (directory)', 'FILE_READ_ATTRIBUTES', 'FILE_WRITE_ATTRIBUTES', 'DELETE', 'READ_CONTROL', 'WRITE_DAC', 'WRITE_OWNER', 'SYNCHRONIZE'],'Description':'The Permissions input parameter is a bit array of the permissions that the caller wishes to inquire about.','In':True}
Description'The GetEffectivePermission method determines whether the caller has the aggregated permissions specified by the Permission argument not only on the file object, but on the share the file or directory resides on (if it is on a share).'
GetEffectivePermission method is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
Rename method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
FileNamestring0-{'Description':'The FileName input parameter is a string representing the new name for the logical file (or directory). The FileName input parameter must be a fully qualified path name. Example: c:\temp\newfile.txt.','In':True}
Description'The Rename method renames the logical file (or directory) specified in the object path. Rename returns an integer value of 0 if the file was successfully renamed, and any other number to indicate an error. A rename is not supported if the destination is on another drive or overwriting an existing logical file is required
It returns one of the following integer values:
0 - The request was successful.
2 - Access was denied.
8 - An unspecified failure occurred.
9 - The name specified was invalid.
10 - The object specified already exists.
11 - The file system is not NTFS.
12 - The platform is not Windows NT or Windows 2000.
13 - The drive is not the same.
14 - The directory is not empty.
15 - There has been a sharing violation.
16 - The start file specified was invalid.
17 - A privilege required for the operation is not held.
21 - A parameter specified is invalid.
'
Values['Success', 'Access Denied', 'Unspecified failure', 'Invalid object', 'Object already exists', 'File system not NTFS', 'Platform not NT/Windows 2000', 'Drive not the same', 'Directory not empty', 'Sharing violation', 'Invalid start file', 'Privilege not held', 'Invalid parameter']
Rename method is in 12 classes of ROOT\CIMV2\ms_409 and in 10 namespaces
TakeOwnerShip method
Returnuint32 {'out':True}
Description'The TakeOwnerShip method obtains ownership of the logical file specified in the object path . If the logical file is actually a directory, then TakeOwnerShip will act recursively, taking ownership of all the files and sub-directories the directory contains.
It returns one of the following integer values:
0 - The request was successful.
2 - Access was denied.
8 - An unspecified failure occurred.
9 - The name specified was invalid.
10 - The object specified already exists.
11 - The file system is not NTFS.
12 - The platform is not Windows NT or Windows 2000.
13 - The drive is not the same.
14 - The directory is not empty.
15 - There has been a sharing violation.
16 - The start file specified was invalid.
17 - A privilege required for the operation is not held.
21 - A parameter specified is invalid.
'
Values['Success', 'Access Denied', 'Unspecified failure', 'Invalid object', 'Object already exists', 'File system not NTFS', 'Platform not NT/Windows 2000', 'Drive not the same', 'Directory not empty', 'Sharing violation', 'Invalid start file', 'Privilege not held', 'Invalid parameter']
TakeOwnerShip method is in 9 classes of ROOT\CIMV2\ms_409 and in 3 namespaces
TakeOwnerShipEx method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
StopFileNamestring0-{'Description':'The StopFileName output parameter is a string representing the name of the file/directory where TakeOwnerShipEx method failed. StopFileName parameter will be null if the method succeeds.','Out':True}
StartFileNamestring1-{'Description':'The StartFileName input parameter is a string that names the child file/directory to use as a starting point for TakeOwnerShipEx.The StartFileName property typically, is the StopFileName parameter specifying the file or directory at which anerror occurred from the previous method call. If this parameter is NULL, the operation is performed on the file ordirectory specified in the ExecMethod call.','In':True}
Recursiveboolean2-{'Description':'The Recursive input parameter is a boolean that indicates whether the change of ownership will be applied recursively to files and directories within the directory specified by the CIM_LogicalFile instance.Note for file instances the Recursive input parameter is ignored.','In':True}
Description'The TakeOwnerShipEx method obtains ownership of the logical file specified in the object path. If the logical file is actually a directory, then this method will act recursively, taking ownership of all the files and sub-directories the directory contains. TakeOwnerShipEx returns an integer value of 0 on success, and any other number to indicate an error. TakeOwnerShipEx is an extended version of the TakeOwnerShip method.
It returns one of the following integer values:
0 - The request was successful.
2 - Access was denied.
8 - An unspecified failure occurred.
9 - The name specified was invalid.
10 - The object specified already exists.
11 - The file system is not NTFS.
12 - The platform is not Windows NT or Windows 2000.
13 - The drive is not the same.
14 - The directory is not empty.
15 - There has been a sharing violation.
16 - The start file specified was invalid.
17 - A privilege required for the operation is not held.
21 - A parameter specified is invalid.
'
Values['Success', 'Access Denied', 'Unspecified failure', 'Invalid object', 'Object already exists', 'File system not NTFS', 'Platform not NT/Windows 2000', 'Drive not the same', 'Directory not empty', 'Sharing violation', 'Invalid start file', 'Privilege not held', 'Invalid parameter']
TakeOwnerShipEx method is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
Uncompress method
Returnuint32 {'out':True}
Description'The Uncompress method uncompresses the logical file (or directory) specified in the object path. Uncompress returns an integer value of 0 if the file was successfully decompressed, and any other number to indicate an error.
It returns one of the following integer values:
0 - The request was successful.
2 - Access was denied.
8 - An unspecified failure occurred.
9 - The name specified was invalid.
10 - The object specified already exists.
11 - The file system is not NTFS.
12 - The platform is not Windows NT or Windows 2000.
13 - The drive is not the same.
14 - The directory is not empty.
15 - There has been a sharing violation.
16 - The start file specified was invalid.
17 - A privilege required for the operation is not held.
21 - A parameter specified is invalid.
'
Values['Success', 'Access Denied', 'Unspecified failure', 'Invalid object', 'Object already exists', 'File system not NTFS', 'Platform not NT/Windows 2000', 'Drive not the same', 'Directory not empty', 'Sharing violation', 'Invalid start file', 'Privilege not held', 'Invalid parameter']
Uncompress method is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
UncompressEx method
Returnuint32 {'out':True}
Parameters
NameCIMTypeIDINOUTQualifiers
StopFileNamestring0-{'Description':'The StopFileName output parameter is a string representing the name of the file/directory where UncompressEx failed. StopFileName will be null if the method succeeds.','Out':True}
StartFileNamestring1-{'Description':'The StartFileName input parameter is a string that names the child file/directory to use as a starting point for UncompressEx.The StartFileName property typically, is the StopFileName parameter specifying the file or directory at which anerror occurred from the previous method call. If this parameter is NULL, the operation is performed on the file ordirectory specified in the ExecMethod call.','In':True}
Recursiveboolean2-{'Description':'The Recursive input parameter is a boolean that indicates whether the decompression will be applied recursively to files and directories within the directory specified by the CIM_LogicalFile instance.Note for file instances the Recursive input parameter is ignored.','In':True}
Description'The UncompressEx method uncompresses the logical file (or directory) specified in the object path. UncompressEx returns an integer value of 0 if the file was successfully decompressed, and any other number to indicate an error. UncompressEx is an extended version of the Uncompress method.
It returns one of the following integer values:
0 - The request was successful.
2 - Access was denied.
8 - An unspecified failure occurred.
9 - The name specified was invalid.
10 - The object specified already exists.
11 - The file system is not NTFS.
12 - The platform is not Windows NT or Windows 2000.
13 - The drive is not the same.
14 - The directory is not empty.
15 - There has been a sharing violation.
16 - The start file specified was invalid.
17 - A privilege required for the operation is not held.
21 - A parameter specified is invalid.
'
Values['Success', 'Access Denied', 'Unspecified failure', 'Invalid object', 'Object already exists', 'File system not NTFS', 'Platform not NT/Windows 2000', 'Drive not the same', 'Directory not empty', 'Sharing violation', 'Invalid start file', 'Privilege not held', 'Invalid parameter']
UncompressEx method is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces

Detailed description of CIM_DeviceFile properties

Derived properties (31) of CIM_DeviceFile class

AccessMask property
BitValues['FILE_READ_DATA (file) or FILE_LIST_DIRECTORY (directory)', 'FILE_WRITE_DATA (file) or FILE_ADD_FILE (directory)', 'FILE_APPEND_DATA (file) or FILE_ADD_SUBDIRECTORY (directory)', 'FILE_READ_EA', 'FILE_WRITE_EA', 'FILE_EXECUTE (file) or FILE_TRAVERSE (directory)', 'FILE_DELETE_CHILD (directory)', 'FILE_READ_ATTRIBUTES', 'FILE_WRITE_ATTRIBUTES', 'DELETE', 'READ_CONTROL', 'WRITE_DAC', 'WRITE_OWNER', 'SYNCHRONIZE']
CIMTYPE'uint32'
Description'The AccessMask property is a bit array representing the access rights to the given file or directory held by the user or group on whose behalf the instance is returned. This property is only supported under Windows NT and Windows 2000. On Windows 98 and on Windows NT/2000 FAT volumes, FULL_ACCESS is returned, indicating no security has been set on the object.'
AccessMask property is in 17 classes of ROOT\CIMV2\ms_409 and in 142 namespaces
Archive property
CIMTYPE'boolean'
Description'The Archive property is a boolean value indicating that the file should be archived.'
Archive property is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
Caption property
CIMTYPE'string'
Description'The Caption property is a short textual description (one-line string) of the object.'
Caption property is in 273 classes of ROOT\CIMV2\ms_409 and in 37 namespaces
Compressed property
CIMTYPE'boolean'
Description'The Compressed property is a boolean value indicating that the file is compressed.'
Compressed property is in 12 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
CompressionMethod property
CIMTYPE'string'
Description'The CompressionMethod property is a free form string indicating the algorithm or tool used to compress the logical file. If it is not possible (or not desired) to describe the compression scheme (perhaps because it is not known), use the following words: "Unknown" to represent that it is not known whether the logical file is compressed or not, "Compressed" to represent that the file is compressed but either its compression scheme is not known or not disclosed, and "Not Compressed" to represent that the logical file is not compressed.'
CompressionMethod property is in 24 classes of ROOT\CIMV2\ms_409 and in 5 namespaces
CreationClassName property
CIMTYPE'string'
Description'The CreationClassName property is a string indicating the name of this class.'
CreationClassName property is in 175 classes of ROOT\CIMV2\ms_409 and in 20 namespaces
CreationDate property
CIMTYPE'datetime'
Description'The CreationDate property is a datetime value indicating the file's creation date.'
CreationDate property is in 11 classes of ROOT\CIMV2\ms_409 and in 4 namespaces
CSCreationClassName property
CIMTYPE'string'
Description'The CSCreationClassName property is a string indicating the class of the computer system.'
CSCreationClassName property is in 27 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
CSName property
CIMTYPE'string'
Description'The CSName property is a string indicating the name of the computer system.'
CSName property is in 28 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
Description property
CIMTYPE'string'
Description'The Description property provides a textual description of the object. '
Description property is in 329 classes of ROOT\CIMV2\ms_409 and in 142 namespaces
Drive property
CIMTYPE'string'
Description'The Drive property is a string representing the drive letter (including colon) of the file. Example: c:'
Drive property is in 10 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
EightDotThreeFileName property
CIMTYPE'string'
Description'The EightDotThreeFileName property is a string representing the DOS-compatible file name for this file.
Example: c:\progra~1'
EightDotThreeFileName property is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
Encrypted property
CIMTYPE'boolean'
Description'The Encrypted property is a boolean value indicating that the file is encrypted.'
Encrypted property is in 9 classes of ROOT\CIMV2\ms_409 and in 3 namespaces
EncryptionMethod property
CIMTYPE'string'
Description'The EncryptionMethod property is a free form string indicating the algorithm or tool used to encrypt the logical file. If it is not possible (or not desired) to describe the encryption scheme (perhaps for security reasons), use the following words: "Unknown" to represent that it is not known whether the logical file is encrypted or not, "Encrypted" to represent that the file is encrypted but either its encryption scheme is not known or not disclosed, and "Not Encrypted" to represent that the logical file is not encrypted.'
EncryptionMethod property is in 13 classes of ROOT\CIMV2\ms_409 and in 8 namespaces
Extension property
CIMTYPE'string'
Description'The Extension property is a string representing the file's extension (without the dot). Example: txt, mof, mdb.'
Extension property is in 11 classes of ROOT\CIMV2\ms_409 and in 5 namespaces
FileName property
CIMTYPE'string'
Description'The FileName property is a string representing the filename (without extension) of the file. Example: autoexec'
FileName property is in 18 classes of ROOT\CIMV2\ms_409 and in 23 namespaces
FileSize property
CIMTYPE'uint64'
Description'The FileSize property represents the size of the file (in bytes).'
Units'bytes'
FileSize property is in 12 classes of ROOT\CIMV2\ms_409 and in 6 namespaces
FileType property
CIMTYPE'string'
Description'The FileType property is a string descriptor representing the file type (indicated by the Extension property).'
FileType property is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
FSCreationClassName property
CIMTYPE'string'
Description'The FSCreationClassName property is a string indicating the class of the file system.'
FSCreationClassName property is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
FSName property
CIMTYPE'string'
Description'The FSName property is string indicating the name of the file system.'
FSName property is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
Hidden property
CIMTYPE'boolean'
Description'The Hidden property is a boolean value indicating if the file is hidden.'
Hidden property is in 9 classes of ROOT\CIMV2\ms_409 and in 5 namespaces
InstallDate property
CIMTYPE'datetime'
Description'The InstallDate property is datetime value indicating when the object was installed. A lack of a value does not indicate that the object is not installed.'
InstallDate property is in 223 classes of ROOT\CIMV2\ms_409 and in 23 namespaces
InUseCount property
CIMTYPE'uint64'
Description'The InUseCount property is an integer indicating the number of 'file opens' that are currently active against the file.'
InUseCount property is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
LastAccessed property
CIMTYPE'datetime'
Description'The LastAccessed property is a datetime value indicating the time the file was last accessed.'
LastAccessed property is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
LastModified property
CIMTYPE'datetime'
Description'The LastModified property is a datetime value indicating the time the file was last modified.'
LastModified property is in 9 classes of ROOT\CIMV2\ms_409 and in 4 namespaces
Name property
CIMTYPE'string'
Description'The Name property is a string representing the inherited name that serves as a key of a logical file instance within a file system. Full path names should be provided. Example: c:\winnt\system\win.ini'
keyTrue
Name property is in 306 classes of ROOT\CIMV2\ms_409 and in 142 namespaces
Path property
CIMTYPE'string'
Description'The Path property is a string representing the path of the file. This includes leading and trailing backslashes. Example: \windows\system\'
Path property is in 14 classes of ROOT\CIMV2\ms_409 and in 30 namespaces
Readable property
CIMTYPE'boolean'
Description'The Readable property is a boolean value indicating if the file can be read.'
Readable property is in 9 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
Status property
CIMTYPE'string'
Description'The Status property is a string indicating the current status of the object. Various operational and non-operational statuses can be defined. Operational statuses are "OK", "Degraded" and "Pred Fail". "Pred Fail" indicates that an element may be functioning properly but predicting a failure in the near future. An example is a SMART-enabled hard drive. Non-operational statuses can also be specified. These are "Error", "Starting", "Stopping" and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is on-line, yet the managed element is neither "OK" nor in one of the other states.'
Values['OK', 'Error', 'Degraded', 'Unknown', 'Pred Fail', 'Starting', 'Stopping', 'Service', 'Stressed', 'NonRecover', 'No Contact', 'Lost Comm']
Status property is in 225 classes of ROOT\CIMV2\ms_409 and in 42 namespaces
System property
CIMTYPE'boolean'
Description'The system property is a boolean value indicating if the file is a system file.'
System property is in 11 classes of ROOT\CIMV2\ms_409 and in 2 namespaces
Writeable property
CIMTYPE'boolean'
Description'The Writeable property is a boolean value indicating if the file can be written.'
Writeable property is in 9 classes of ROOT\CIMV2\ms_409 and in 3 namespaces

CIM_DeviceFile Qualifiers

NameValueToInstanceToSubclassOverridableAmendedLocal
AMENDMENTTrue
Description'A device file is a special type of logical file that represents a device. This convention is useful for some operating systems that manage devices using a byte stream I/O model. The logical device that is associated with this file is specified using the CIM_DeviceAccessedByFile relationship.'
LOCALE1033

CIM_DeviceFile System properties

NameValueOriginCIMTypeLocalArray
__PATH'\\.\ROOT\CIMV2\ms_409:CIM_DeviceFile'___SYSTEM8
__NAMESPACE'ROOT\CIMV2\ms_409'___SYSTEM8
__SERVER'.'___SYSTEM8
__DERIVATION['CIM_LogicalFile', 'CIM_LogicalElement', 'CIM_ManagedSystemElement']___SYSTEM8
__PROPERTY_COUNT31___SYSTEM3
__RELPATH'CIM_DeviceFile'___SYSTEM8
__DYNASTY'CIM_ManagedSystemElement'___SYSTEM8
__SUPERCLASS'CIM_LogicalFile'___SYSTEM8
__CLASS'CIM_DeviceFile'___SYSTEM8
__GENUS1___SYSTEM3

Similar Classes to CIM_DeviceFile

Number of classes:38
comments powered by Disqus
WUtils.com