Hi, I found the below which is supposed to set all disks which are offline to online.
Get-Disk | Where-Object IsOffline -Eq $True | Set-Disk -IsOffline $False
Unfortunately, on my system, Get-Disk does not list all disks attached to my PC. I’m not sure why, perhaps it’s because some disks are attached via a SAS Expander
However, I found that both Get-PhysicalDisk and Get-DiskStorageNodeView will list all my disks, but I am unable to adapt the above code to use either Get-PhysicalDisk or Get-DiskStorageNodeView.
Any help would be greatly appreciated!