hey guys,
Could you help me create an analysis that identifies Offline Disks and their size on Windows servers?
I tried some alternatives with my little knowledge without success.
thanks for the time
hey guys,
Could you help me create an analysis that identifies Offline Disks and their size on Windows servers?
I tried some alternatives with my little knowledge without success.
thanks for the time
How would you find that info in the UI or on the command line or in WMI or in the registry? Can you provide examples of different ways to find that info without using BigFix?
Also, see these related examples to see if they help:
in WMI I can identify when a disk does not have a partition, which would already be a clue that it is offline
Q: selects “Partitions from Win32_DiskDrive” of wmi
A: Partitions=1
A: Partitions=1
A: Partitions=1
A: Partitions=2
A: Partitions=1
A: Partitions=0 ( HERE IS OFFLINE )
T: 30233
I’m having trouble writing a exists partition = 0
q: exist wmi whose (exists selects "Partitions from Win32_DiskDrive where Partitions = 0" of it)
A: False
OR
Q: exists selects "Partitions from Win32_DiskDrive where Partitions = 0" of wmi
A: False
The former should escape WMI errors, which are not unheard of.
Thanks Ageorgiev it worked perfectly for this first moment, I appreciate your time
Use wmis
instead of wmi
to handle many error conditions in either case.
selects "* from Win32_DiskDrive where Partitions = 0" of wmis
This helps you know what you can inspect.
(it as integer) of string values of properties "size" of select objects "* from Win32_DiskDrive where Partitions = 0" of wmis
exists selects "Partitions from Win32_DiskDrive where Partitions = 0" of wmis
JGSTEW !!
Thank you for sharing your time with my question.