All Forums >> [Scripting] >> WSH & Client Side VBScript >> Win32_PerfFormattedData_PerfDisk_PhysicalDisk Class Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Hi, I need to monitor disk, to know how much data is being written on my disk per day. I came across "Win32_PerfFormattedData_PerfDisk_PhysicalDisk Class". I found that it contain the counter that can give me avgdata being written to disk. But my problem is that whenever I run the script to display value of the counter of this class, I get different answer ( Sometime I get 0 also). So I do not know what to do with these varying disk write values. SO my question is Why the value keep Changing. Also is there any other way to workout the problem.
Thnx
< Message edited by scorpion13_dt -- 6/18/2008 6:09:53 PM >
Hi ebgreen, Thnx for your reply. But the problem is that I have already gone thru that article and that article doesnot explain anything about how some parameters like "AvgDiskBytesPerWrite " , "DiskWriteBytesPerSec" etc obtain their value. Because the confusion is that these parameters keep changing their values every time you run the program. So my point is if for e.g. AvgDiskBytesPerWrite gives the average byte per write then which average is it giving, because this average is keep changing and sometime it is zero also.
Regards
< Message edited by scorpion13_dt -- 6/19/2008 4:59:03 PM >