Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $strComputer = "."
- $colItems = get-wmiobject -class "Win32_DiskQuota" -namespace "root\CIMV2" `
- -computername $strComputer
- $colItems | Format-Table @{Expression={$_.User};Label="User"}, `
- @{Expression={[Math]::Round(($_.DiskSpaceUsed / 1048576), 2)};Label="Diskspace used (MB)"} -auto
- Read-Host "Press any key to continue...."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement