Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Powershell. Get remote servers HDD size stats
SUBMITTED BY:
Guest
DATE:
Nov. 21, 2013, 5:39 a.m.
FORMAT:
Text only
SIZE:
200 Bytes
Raw
Download
Tweet
HITS:
1054
Go to comments
Report
$disk = Get-WmiObject Win32_LogicalDisk -ComputerName myServer -Filter "DeviceID='D:'" | Select-Object Size,FreeSpace
$disk.Size / (1024*1024*1024)
$disk.FreeSpace / (1024*1024*1024)
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus