I'm writing a PowerShell script and I want to get the Number only from Get-Disk.
Something like this.
$DiskNum=Get-Disk|Where-ObjectFilterScript{$_.Bustype -Eq"USB"} |Select-ObjectNumber
However I want $DiskNum to have just the disk number. At the moment has a table that looks like this Number
---------
1
All and any comments greatly appreciated.
WD