why does Win32_LogicalDisk return nothing for Status

Posted: 04-28-2005, 09:27 PM
hi,
i am trying to find a script to tell me if there are problems with
either of my disks, which are configured as software raid 1 in windows
server 2003.

i looked in the SDK and found the Win32_LogicalDisk.Status property,
but it returns nothing when i run it. the other properties appear to
work fine.
any ideas?
thanks
tim

Set objWMI = Getobject("winmgmts:root/cimv2").ExecQuery("select * from
Win32_LogicalDisk where drivetype = 3")
For Each objDisk In objWMI
wscript.echo objDisk.Caption & " - " & objDisk.Status
Next

Reply With Quote

Responses to "why does Win32_LogicalDisk return nothing for Status"

 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Status Bar S Murder Windows Vista File Management 3 02-03-2007 05:29 AM
IPv6 Status Bug Pat Erley Windows Vista Networking & Sharing 3 06-19-2006 05:05 PM
WMI: Win32_Product - Does not return all products Dimitri Meeuws Windows XP WMI 3 10-29-2004 07:46 PM
WMI GetObject Failing to return anything Charles Palmer Windows XP WMI 2 09-04-2004 08:22 PM
LAN status 'Activity' Glenn Streatfeild Windows XP Network & Web 1 07-02-2003 08:41 PM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90