Swap digits in a string

I’m trying to obtain the serial number of a hdd and the result is for example “1234567890”, even though the real serial number is “2143658709”, so I need a script to swap the numbers. This is what my code currently looks like: $pass = “” $t = (Get-WmiObject win32_physicalmedia).serialnumber $t -split ‘(.{2})’ |%{ if ($_…

Details