'Get Total Hard Disk Space of Remote Machine Using WMIC
I need to determine "TOTAL" hard disk space of the remote Windows host using wmic
call.
I have tried executing wmic /node:<IP-ADDRESS> diskdrive get Size
on some systems. For most of the systems, it worked well. But, for a few of them, it displayed multiple values, which are the total sizes of the partitions available.
H:\>wmic /node:172.22.248.112 diskdrive get size
Size
36273484800
293621594112
In order to get unique value for the total hard disk space (addition of sizes of all partitions), what should be done?
Solution 1:[1]
try to use
C:\>wmic /node:<IP-ADDRESS> logicaldisk get Size
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Josue Barrios |