So here's the thing, ALL my drives have the same friendly name and they do have random uniqueId's but powershell is unable to find the right uniqueId when presented with them.
=======================
PS C:\Users\Administrator> Get-PhysicalDisk | ft FriendlyName,CanPool,Size,MediaType,UniqueId
FriendlyName CanPool Size MediaType UniqueId
------------ ------- ---- --------- --------
XENSRC PVDISK True 2147483648000 Unspecified XENSRC 639ce0ad-e343-4628-832a-32b2a3763727
XENSRC PVDISK True 26843545600 Unspecified XENSRC 91ae49a2-39cf-4a1e-8d35-2552508fb5e0
XENSRC PVDISK True 26843545600 Unspecified XENSRC 4e2422f4-26ed-49e2-a082-7a8243c56878
XENSRC PVDISK True 2147483648000 Unspecified XENSRC 65ef5d15-c6f0-495e-a4cd-82ebdc4d50f4
XENSRC PVDISK False 80530636800 Unspecified XENSRC 6c88d402-e218-4a5b-b1e4-faf295a34c11
XENSRC PVDISK True 26843545600 Unspecified XENSRC 25089c59-ffbc-471d-aac1-2f5c8a8a80c3
XENSRC PVDISK True 2147483648000 Unspecified XENSRC c00156ee-60f4-42c7-83af-cb9555074c30
PS C:\Users\Administrator>
=======================
I want to set the correct media types so i can use the SSDs for caching, the 3x2TB drives will run in parity along with the 3x25GB ssd drives which will be a cache.
I did look up online so everyone suggests this:
=======================
PS C:\Users\Administrator> Set-PhysicalDisk -UniqueId "{25089c59-ffbc-471d-aac1-2f5c8a8a80c3}" -MediaType SSD
Set-PhysicalDisk : The requested object could not be found.
At line:1 char:1
+ Set-PhysicalDisk -UniqueId "{25089c59-ffbc-471d-aac1-2f5c8a8a80c3}" - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (PS_StorageCmdlets:ROOT/Microsoft/..._StorageCmdlets) [Set-PhysicalDisk], CimException
+ FullyQualifiedErrorId : MI RESULT 6,Set-PhysicalDisk
PS C:\Users\Administrator>
=======================
Doesn't work, so you think just copy the entire string as is:
=======================
PS C:\Users\Administrator> Set-PhysicalDisk -UniqueId "XENSRC 91ae49a2-39cf-4a1e-8d35-2552508fb5e0" -MediaType SSD
Set-PhysicalDisk : The requested object could not be found.
At line:1 char:1
+ Set-PhysicalDisk -UniqueId "XENSRC 91ae49a2-39cf-4a1e-8d35-2552508fb ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (PS_StorageCmdlets:ROOT/Microsoft/..._StorageCmdlets) [Set-PhysicalDisk], CimException
+ FullyQualifiedErrorId : MI RESULT 6,Set-PhysicalDisk
PS C:\Users\Administrator>
=======================
Nope, i've tried quotations, curly brackets, single quotations, and all this again being part of a pool and not being part of a pool. Nothing works.
OS i'm using is Windows Server 2016 Datacenter