Is there a way to do this in C#? I know how to do it in PS but there doesn't seem to be a method in the IDevice class to enter maintenance mode.
Also, there is a bug in the C# method GetDeviceByID - the following code doesn't work but should: d.DeviceID returns some string like "0x000001D35A748540" but attempting to find this device using that id and server.GetDeviceById() throws an exception:
IStarWindServer starWindServer1 = ... set up and connect to server
IDevice d = {some device}
starWindServer1.GetDeviceByID(d.DeviceId) => returns "device not found"
The Latest Gartner® Magic Quadrant™Hyperconverged Infrastructure Software