Link to home
Start Free TrialLog in
Avatar of Sam
Sam

asked on

Reset VMs in VMWARE and Hyper-V via command line or script.

Hello there,

So in our environment, we get the calls from monitoring team whenever they get the alert in their system regarding the server being down. Most likely this is a hung situation where we (domain admins and vmware admins) have to reboot the particular vm. We want to automate this process so monitoring can do this task themselves. This is kind of urgent requested by management so i thought I can get the help faster here rather than spending sometime on scripting. Any help is appreciated meanwhile I figure this out. Thanks!
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sam
Sam

ASKER

Thanks for assisting.

Usually when a server is hung, it needs to be reset not restart because we can't connect to the server remotely. We have to use powershell that can talk to vcenter first and then execute the command behalf of vcenter.

And I think it need more than just this command. For example, if the vm need to be reset, I have to import vmware modules in powershell first and on top of that monitoring team would need some customized vmware access (shutdown access lets say) in order to proceed with this reset.

And they would need some type of access in hyper-v aswell. Or may be not as they will use their AD account.