NetApp sdcli disk list to CSV with Powershell

So I have been breaking playing around with Jetstress, NetApp filers and Cisco UCS. Not have much fun or luck, as I just cant get the damn thing to pass even a simple test. But that is another story!

I have been looking at sdcli and getting some powershell automation going, and I wanted to find out details of all the disks connected to my severs. Now sdcli is the worst thing in the word for getting anything decent out, so I wrote the following. Basically run it on a server with NetApp SnapDrive and it will give you a CSV file with the output of sdcli disk list. Shweet It crude but effective!