Tag Archives: core

Auto-Shutdown Hyper-V free with UPS

By | October 19, 2016

Auto-Shutdown Hyper-V free with USB UPS This post is about how to Auto Shutdown Hyper-v core with UPS using PowerShell and also send email notifications based to UPS battery level. Recently i installed a Windows Hyper-V 2012 R2 server (the free version) but my UPS doesn’t support Windows Core. No problem, we have PowerShell!! after some… Read More »

Share

SQL Failover Cluster with AlwaysOn Availability Groups

By | November 10, 2015

SQL Failover Cluster with AlwaysOn Availability Groups Η ιδέα είναι να έχουμε ένα SQL Flailover Cluster στο Primary Site και στο υπάρχον Cluster να προσθέσουμε ένα AlwaysOn Availability group για το DR. Λόγο του μεγέθους της υλοποίησης θα γίνει τρία Posts. Ένα το Failover Cluster, ένα η εγκατάσταση της SQL σε Failover Clster και ένα η υλοποίηση του… Read More »

Share

Completely delete Hyper-V VMs

By | September 17, 2014

This is a powerful PowerShell command that completely deletes VMs. It stops the VM, remove it from Hyper-V and deletes configuration files and virtual disks associated. To remove a single VM run: [sourcecode language=”powershell”] Get-VM -ComputerName hypervhost -Name testvm01 | %{ Stop-VM -VM $_ -Force; Remove-VM -vm $_ -Force ; Remove-Item -Path $_.Path -Recurse -Force}… Read More »

Share

Fast Create Hyper-V VM

By | September 17, 2014

This is a script to quickly create a VM, mostly for tests   Quickly create a VM with 512MB Ram on local Hyper-V host [sourcecode language=”powershell”] New-VM -Name testvm01 -Path ‘C:VMs’ -MemorystartupBytes 512MB [/sourcecode] Quickly create a VM with 512MB Ram on remote Hyper-V host [sourcecode language=”powershell”] New-VM -Computername ‘hypervhostname’ -Name ‘vmname’ -Path ‘c:VMs’ -MemorystartupBytes 512MB [/sourcecode] Create… Read More »

Share