Friday, 5 January 2018

Get-Disk PowerShell cmdlet does not show dynamic disks.

We've been updating our Windows server documentation tool to use the newer Get-Disk cmdlets on Windows 2012 and above and found that when you configure a disk as dynamic


The Get-Disk PowerShell cmdlet disappears the disk. It's interesting as the same thing happens in Server Manager. Whilst dynamic disks are deprecated it's still frustrating when things disappear from a user interface rather than showing them as an "Unsupported Disk".


You can however see dynamic disks when using the Get-PhysicalDisk cmdlet

Basic Disk
  • Shows in Disk Management MMC
  • Shows in Get-Disk cmdlet
  • Shows in Server Manager
  • Shows in Get-PhysicalDisk cmdlet
  • Shows in Win32_DiskDrive


Dynamic Disk
  • Shows in Disk Management MMC
  • Doesn't show in Get-Disk cmdlet
  • Doesn't show in Server Manager
  • Shows in Get-PhysicalDisk cmdlet
  • Shows in Win32_DiskDrive


Storage Pool Member Disk
  • Doesn't show in Disk Management MMC
  • Doesn't show in Get-Disk cmdlet
  • Doesn't show in Server Manager
  • Shows in Get-PhysicalDisk cmdlet
  • Doesn't show in Win32_DiskDrive

Storage Pool Virtual Disk
  • Shows in Disk Management MMC
  • Shows in Get-Disk cmdlet as a Microsoft Storage Space Device
  • Shows in Server Manager
  • Doesn't show in Get-PhysicalDisk cmdlet (it's not a physical disk)
  • Does show in Win32_DiskDrive

No comments:

Post a Comment