Hello, I am trying to delete a disk from a StoragePool:![User's image](https://learn-attachment.microsoft.com/api/attachments/4aa4f6d3-0888-44d8-9db0-70c932dd3ee1?platform=QnA)
First, I execute this command, which also completes successfully:
Set-PhysicalDisk -FriendlyName 'physicaldisk-1' -Usage Retired
But then I try
Remove-PhysicalDisk physicaldisk-1
Do I get the error message
Remove-PhysicalDisk : The argument transformation for the "StoragePool" parameter cannot be processed. The value "physicaldisk-1" cannot be converted to type "Microsoft.Management.Infrastructure.CimInstance" type. Error: "The specified argument is outside the valid range of values. Parameter name: className"
I wanted to try to erase the disk via the serialnumber or uniqueid
Get-PhysicalDisk | select-object serialnumber, uniqueid, friendlyname, operationstatus, healthstatus
but there I only get this info:
serialnumber:
uniqueid:
friendlyname: PhysicalDisk-1
operationstatus:
HealthStatus: Warning
Do you have any ideas what else I could do?
I have already restarted several times.
Reset-PhysicalDisk fails with "Reset-physicaldisk : Failed".
Thanks a lot for your help!