Get-disk -Number 3 | select UniqueId
gives below error
Get-Disk : No MSFT_Disk objects found with property 'Number' equal to '3'. Verify the value of the property and retry.
At line:1 char:13
+ $UNIQUEID = Get-Disk -Number 3 | Select UniqueId
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (3:UInt32) [Get-Disk], CimJobException
+ FullyQualifiedErrorId : CmdletizationQuery_NotFound_Number,Get-Disk
