Fasyrio
Sep 28, 2021Copper Contributor
Impossibile to store DiskNumber knowing the disk label
PS C:\Users\utente> Get-Disk | Where-Object { $_.FriendlyName -eq 'XXXXX' }
PS C:\Users\utente>
Impossible is assign letter (Example b) a disk with label "XXXXX'
$DiskNumber = Get-Disk | Where-Object { $_.FriendlyName -eq 'XXXXX' }
Get-Partition -DiskNumber $($DiskNumber.Number) | Set-Partition - newDriveLetter b