Export (0) Print
Expand All
6 out of 13 rated this helpful - Rate this topic

Win32_PhysicalMedia class

The Win32_PhysicalMedia class represents any type of documentation or storage medium, such as tapes, CD ROMs, and so on. To obtain the characteristics of the media in a CD drive, such as whether it is writeable, use Win32_CDROMDrive and the Capabilities property.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

[Provider("CIMWin32"), Dynamic]class Win32_PhysicalMedia : CIM_PhysicalMedia
{
  string   Caption;
  string   Description;
  datetime InstallDate;
  string   Name;
  string   Status;
  string   CreationClassName;
  string   Manufacturer;
  string   Model;
  string   SKU;
  string   SerialNumber = NULL;
  string   Tag = NULL;
  string   Version;
  string   PartNumber;
  string   OtherIdentifyingInfo;
  boolean  PoweredOn;
  boolean  Removable;
  boolean  Replaceable;
  boolean  HotSwappable;
  uint64   Capacity;
  uint16   MediaType;
  string   MediaDescription;
  boolean  WriteProtectOn;
  boolean  CleanerMedia;
};

Members

The Win32_PhysicalMedia class has these types of members:

Properties

The Win32_PhysicalMedia class has these properties.

Capacity
Data type: uint64
Access type: Read-only

Number of bytes that can be read from or written to this physical media component. This property does not apply to "Hard Copy" or cleaner media. Data compression should not be assumed as it would increase the value of this property. For tapes, it should be assumed that no filemarks or blank space areas are recorded on the media.

For more information about using uint64 values in scripts, see Scripting in WMI.

Caption
Data type: string
Access type: Read-only

Short, one-line textual description of the object.

CleanerMedia
Data type: boolean
Access type: Read-only

If TRUE, the physical media is used for cleaning purposes and not data storage.

CreationClassName
Data type: string
Access type: Read-only

Name of the class or subclass used in the creation of an instance. When used with other key properties of this class, CreationClassName allows all instances of this class and its subclasses to be uniquely identified.

Description
Data type: string
Access type: Read-only

Textual description of the object.

HotSwappable
Data type: boolean
Access type: Read-only

If TRUE, this physical media component can be replaced with a physically different but equivalent one while the containing package has the power applied. For example, a fan component may be designed to be hot-swapped. All components that can be hot-swapped are inherently removable and replaceable.

InstallDate
Data type: datetime
Access type: Read-only

When the object was installed. This property does not require a value to indicate that the object is installed.

Manufacturer
Data type: string
Access type: Read-only

Name of the organization responsible for producing the physical element. This can be the entity from whom the element is purchased, but this is not necessarily the case as this information is contained in the Vendor property.

MediaDescription
Data type: string
Access type: Read-only

Additional detail related to the MediaType property. For example, if MediaType has the value 3 (QIC Cartridge) the MediaDescription property can indicate whether the tape is wide or quarter inch.

MediaType
Data type: uint16
Access type: Read-only

The type of the media, as an enumerated integer. The MediaDescription property provides a more explicit definition of the media type.

The following table lists the possible values.

ValueMeaning
0

Unknown

1

Other

2

Tape Cartridge

3

QIC Cartridge

4

AIT Cartridge

5

DTF Cartridge

6

DAT Cartridge

7

8mm Tape Cartridge

8

19mm Tape Cartridge

9

DLT Cartridge

10

Half-Inch Magnetic Tape Cartridge

11

Cartridge Disk

12

JAZ Disk

13

ZIP Disk

14

SyQuest Disk

15

Winchester Removable Disk

16

CD ROM

17

CD ROM/XA

18

CD-I

19

CD Recordable

20

WORM

21

Magneto-Optical

22

DVD

23

DVD+RW

24

DVD-RAM

25

DVD-ROM

26

DVD-Video

27

Divx

28

Floppy/Diskette

29

Hard Disk

30

Memory Card

31

Hard Copy

32

Clik Disk

33

CD-RW

34

CD-DA

35

CD+

36

DVD Recordable

37

DVD-RW

38

DVD-Audio

39

DVD-5

40

DVD-9

41

DVD-10

42

DVD-18

43

Magneto-Optical Rewriteable

44

Magneto-Optical Write Once

45

Magneto-Optical Rewriteable (LIMDOW)

46

Phase Change Write Once

47

Phase Change Rewriteable

48

Phase Change Dual Rewriteable

49

Ablative Write Once

50

Near Field Recording

51

MiniQic

52

Travan

53

8mm Metal Particle

54

8mm Advanced Metal Evaporate

55

NCTP

56

LTO Ultrium

57

LTO Accelis

58

9 Track Tape

59

18 Track Tape

60

36 Track Tape

61

Magstar 3590

62

Magstar MP

63

D2 Tape

64

Tape - DST Small

65

Tape - DST Medium

66

Tape - DST Large

 

Model
Data type: string
Access type: Read-only

Name by which the physical element is generally known.

Name
Data type: string
Access type: Read-only

Label by which the object is known. When subclassed, the Name property can be overridden to be a Key property.

OtherIdentifyingInfo
Data type: string
Access type: Read-only

Additional data, beyond asset tag information, that can be used to identify a physical element. One example is bar code data associated with an element that also has an asset tag. Note that if only bar code data is available, is unique, and it can be used as an element key, this property is NULL and the bar code data used is the class key in the Tag property.

PartNumber
Data type: string
Access type: Read-only

Part number assigned by the manufacturer of the physical element.

PoweredOn
Data type: boolean
Access type: Read-only

If TRUE the physical element is powered on.

Removable
Data type: boolean
Access type: Read-only

If TRUE, the physical component is designed to be taken in and out of the physical container in which it is normally found, without impairing the function of the overall packaging. A component can still be removable if the power must be "off" to perform the removal. If power can be "on" and the component removed, the element is removable and can be hot-swapped.

Replaceable
Data type: boolean
Access type: Read-only

If TRUE, this physical media component can be replaced with a physically different one. For example, some computer systems allow the main processor chip to be upgraded to one of a higher clock rating. In this case, the processor is said to be replaceable. All removable components are inherently replaceable.

SerialNumber
Data type: string
Access type: Read-only

Manufacturer-allocated number used to identify the physical media.

Example: WD-WM3493798728

SKU
Data type: string
Access type: Read-only

Stock keeping unit number for this physical element.

Status
Data type: string
Access type: Read-only

Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses are "OK", "Degraded", and "Pred Fail". "Pred Fail" indicates that an element may function properly at the present, but predicts a failure in the near future. For example, a SMART-enabled hard disk drive. Nonoperational statuses can also be specified. These are, "Error", "Starting", "Stopping," and "Service". The "Service" status applies to administrative work, such as mirror-resilvering of a disk or reload of a user permissions list. Not all such work is online, yet the managed element is neither "OK" nor in one of the other states.

The values are:

"OK"
"Error"
"Degraded"
"Unknown"
"Pred Fail"
"Starting"
"Stopping"
"Service"
"Stressed"
"NonRecover"
"No Contact"
"Lost Comm"
Tag
Data type: string
Access type: Read-only
Qualifiers: MaxLen (256) , Dynamic

Uniquely identifies the physical media in the system.

Example: PHYSICALDRIVE0

Version
Data type: string
Access type: Read-only

Version of the physical element.

WriteProtectOn
Data type: boolean
Access type: Read-only

If TRUE, the media is currently write protected by some kind of physical mechanism, such as a protect tab on a floppy disk.

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

Windows XP

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

Wmipcima.mof

DLL

Wmipcima.dll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.