Jump to content


DancingFerret

MOF Help - Win32_Volume

Recommended Posts

Hi,

 

I'm trying to add the WIN32_Volume class to report in SCCM but it is not reporting back ALL the drives data, only a single instace on the servers.

EG: 24 attached drives only 1 drive is been reported back.

I am expecting to see the same data in SCCM as if i ran "get-wmiobject win32_volume" in powershell

Can someone have a look and see what I've missed or doing wrong?

 

PS; I can't use the LogicalDisk drives to report back the data as not all drives are setup as Logical, so I need to get the Volume class working. Any help would be appreciated

 

//==============================================================

 

#pragma namespace ("\\\\.\\root\\cimv2\\")

 

[ SMS_Report (TRUE),

SMS_Group_Name ("SCCM_Disk_Volume"),

SMS_Class_ID ("CUSTOM|SCCM_Disk_Volume|1.0") ]

 

class Win32_Volume : SMS_Class_Template

{

[sMS_Report (FALSE) ]

uint16 Access;

[sMS_Report (FALSE) ]

boolean Automount;

[sMS_Report (TRUE) ]

uint16 Availability;

[sMS_Report (FALSE) ]

uint64 BlockSize;

[sMS_Report (TRUE) ]

boolean BootVolume;

[sMS_Report (TRUE), key ]

uint64 Capacity;

[sMS_Report (FALSE) ]

string Caption;

[sMS_Report (FALSE) ]

boolean Compressed;

[sMS_Report (TRUE) ]

uint32 ConfigManagerErrorCode;

[sMS_Report (TRUE) ]

boolean ConfigManagerUserConfig;

[sMS_Report (TRUE) ]

string CreationClassName;

[sMS_Report (TRUE) ]

string Description;

[sMS_Report (TRUE) ]

string DeviceID;

[sMS_Report (FALSE) ]

boolean DirtyBitSet;

[sMS_Report (TRUE) ]

string DriveLetter;

[sMS_Report (TRUE) ]

uint32 DriveType;

[sMS_Report (TRUE) ]

boolean ErrorCleared;

[sMS_Report (TRUE) ]

string ErrorDescription;

[sMS_Report (TRUE) ]

string ErrorMethodology;

[sMS_Report (TRUE) ]

string FileSystem;

[sMS_Report (TRUE) ]

uint64 FreeSpace;

[sMS_Report (FALSE) ]

boolean IndexingEnabled;

[sMS_Report (FALSE) ]

datetime InstallDate;

[sMS_Report (TRUE) ]

string Label;

[sMS_Report (TRUE) ]

uint32 LastErrorCode;

[sMS_Report (TRUE) ]

uint32 MaximumFileNameLength;

[sMS_Report (FALSE) ]

string Name;

[sMS_Report (TRUE) ]

uint64 NumberOfBlocks;

[sMS_Report (TRUE) ]

boolean PageFilePresent;

[sMS_Report (TRUE) ]

string PNPDeviceID;

[sMS_Report (FALSE) ]

boolean PowerManagementSupported;

[sMS_Report (TRUE) ]

string Purpose;

[sMS_Report (TRUE) ]

boolean QuotasEnabled;

[sMS_Report (TRUE) ]

boolean QuotasIncomplete;

[sMS_Report (TRUE) ]

boolean QuotasRebuilding;

[sMS_Report (TRUE) ]

uint32 SerialNumber;

[sMS_Report (TRUE) ]

string Status;

[sMS_Report (FALSE) ]

uint16 StatusInfo;

[sMS_Report (FALSE) ]

boolean SupportsDiskQuotas;

[sMS_Report (FALSE) ]

boolean SupportsFileBasedCompression;

[sMS_Report (TRUE) ]

string SystemCreationClassName;

[sMS_Report (TRUE) ]

string SystemName;

[sMS_Report (TRUE) ]

boolean SystemVolume;

};

 

//==============================================================

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.