Alans Wiki

IT tips and tricks

Show disk space used by HyperV VM

Posted by alambert on August 23, 2021
Posted in: Hyperv, Powershell. Tagged: disk space, Hyper-v, Hyperv, powershell.
Get-VM  | ForEach-Object {Get-VHD -ComputerName $_.ComputerName -VMId $_.VMId} | Select -Property path,computername,vhdtype,@{label='Size(GB)';expression={$_.filesize/1gb -as [int]}} 

Posts navigation

← Report of non-standard permissions Exchange Online
How to reset ESXi evaluation license →
  • Recent Posts

    • Change the RDS “Work Resources”
    • Create SG for folders
    • Enable inheritance on all AD user
    • MSGraph Powershell module
    • Folder Permissions Groups
  • Categories

    • Active Directory
    • Apps
    • Azure
    • Azure Active Directory
    • Backup Exec
    • Command Line
    • Data Center
    • DHCP
    • DNS
    • DNS
    • Exchange
    • Hyperv
    • Networking
    • Offfice 365
    • OneNote
    • Patching
    • PowerCLI
    • Powershell
    • RemoteApps
    • Shortcuts
    • Single
    • Splunk
    • Uncategorized
    • Veeam
    • VMware
    • Windows
    • Workstation
  • Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
Proudly powered by WordPress Theme: Parament by Automattic.