VMware Cloud Community
nikheelkumar16
Contributor
Contributor

Need a vbs script to kill an Unresponsive vm

Hi All,

Need your help in getting an vbs script to kill an unresponsive vm & also script that would give me the output of the free space remaining in the datastores

Thanks in Advance for helping me.

Regards

Nikheel Kumar Uddagiri

0 Kudos
5 Replies
LucD
Leadership
Leadership

Any specific reason why this should be a VBS sript and not a PowerCLI script ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
nikheelkumar16
Contributor
Contributor

There is no such reasons why this should not be in PS

it's just that our most of the scripts are in vbs.. hence was looking for the same.

I am looking for a script that would be running in esx/esxi since we have both the type of servers.

0 Kudos
LucD
Leadership
Leadership

Have a look at How to Hard Kill a stuck VM with PowerCLI


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

nikheelkumar16
Contributor
Contributor

Thanks Lucd for the helping me

But the reason i am looking for such a script is because, incase of absense of senior administrator, even the local desktop engineers should be able to perform the task, and operations should go on.

Regards

Nikheel Kumar Uddagiri1

0 Kudos
LucD
Leadership
Leadership

To see the datastore free space you can do

Get-Datastore | Select Name,FreeSpaceGB


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos