Home > Automation, Hyper-V, Powershell, Virtualization, Win2012
> Using Powershell v3 scheduling for off hours Hyper-V VM
maintenance/configuring   A colleague wanted a script for a
reconfiguration of a VM´s settings. Once the VM is powered off
that is not a big issue. The smart thing is when using
Powershell version 3 I can configure a scheduled job that I want
to execute off hours.  Imagine that you have the task to add a
vCPU to a VM but you can only do it during the service window
that happens to be around midnight, I don´t know about you but I
rather sleep then if I can automate it. Yes I could in earlier
versions use scheduled task but now I am using Win 2012 and
Hyper-V 3 and the latest powershell.  So what do I need to do
then, Jan Egil Ring has made a blog post about scheduled jobs
and I want to show an example regarding Virtual Machine
management..  In Powershell version 3 there are 16 cmdlets
regarding scheduled jobs  First I need a Trigger  $once = New-
JobTrigger -Once -At 11:59PM  Then I need a j