So I have a cluster for Hyper-V and am working on a script to move all active VMs to a host over the weekend, put the hosts in maintenance mode, and then poweroff all but one of those hosts for the weekend..
I know that the PS VirtualMachineManager module contains things like 'Get-SCVMHost' Stop-SCVMHost, etc. but I can't figure out how to turn off the machine host and power it back on. Is this something which has to be done with IPMI? If so, I can't find the cmdlet to use to pipe credentials/info.
Any help or articles would be greatly appreciated!
Thanks