Storage

Storage Module

https://docs.microsoft.com/en-us/powershell/module/storage/?view=win10-ps

Get-Disk

Get-Disk

Get-PhysicalDisk

Get-PhysicalDisk
Get-PhysicalDisk | Select-Object BusType,Manufacturer,Model,SerialNumber,Size | Format-List

https://docs.microsoft.com/en-us/powershell/module/storage/get-physicaldisk?view=windowsserver2019-ps

Get-Volume

Get-Volume
Get-Volume | Select-Object -Property DriveLetter,FileSystemLabel,@{label="Size(GB)";expression={$_.size/1GB}} | Format-List

Utilities

diskpart

list disk
select disk 0
clean
convert gpt

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart