vbakshi789
Contributor
Contributor

Need help in C# code to automate ESX patching

Hello Team

Sorry, I am not a developer, but somehow, I have been able to google and build a Windows form to list VM's, ESX clusters and ESX host names. However, now I am stuck as to how to put a ESX host in maintenance mode and then apply a baseline image.  I am confused as to how to call the method public void EnterMaintenanceMode(int timeout, bool? evacuatePoweredOffVms). I am assuming this is the method to be called for maintenance mode on ESX. What is the method going to with hold in it. I have gone through the vSphere SDK, but didn't find anything fruitful with examples of the same.

Any help would be appreciated

0 Kudos
0 Replies