Tag Archives: script

Script to stop a virtual machine if it overused its bandwidth

If you want to stop Hyper-V virtual machine in case of bandwidth over usage you can use the following VBS script and Hyper-V Bandwidth Meter settings.

Stop Hyper-V virtual machine

Hyper-V bandwidth meter settings

You can download script source code below. It stops a virtual machine and also sends email notification to server administrator.

Be sure you have CDO installed on your server and working SMTP localhost server.

Download this script, unzip it and change eml_from and eml_to strings in stop.vbs file.

Simple DNS script

For some weird reason secondary Simple DNS server waits too long sometimes to update DNS records changed on primary DNS server. Especially if lots of records were changed in a short time.

It takes too much time to reload all the records manually in such cases. So we recommend to run the following script on your secondary Simple DNS server. The script forces the server to make the secondary zones update.

The script is created, tested and used many times by our team and our friends. And we feel the need to share it with our website community. Use it and enjoy!

Continue reading