Solved

How to I put VM to sleep/save

Posted on 2011-03-06
3
518 Views
Last Modified: 2012-06-27
I have VM in Hyper-V who I want to put to save state and wakeup from command line. Is that possible ?
0
Comment
Question by:soffcec
  • 2
3 Comments
 
LVL 12

Assisted Solution

by:Sommerblink
Sommerblink earned 500 total points
ID: 35052772
Follow these steps:
http://www.virtualizationadmin.com/articles-tutorials/microsoft-hyper-v-articles/storage-management/administer-microsoft-hyper-v-command-line-cli.html

Install PowerShell,
Then add the Hyper-V Powershell Library.

Then use the commands Start-VM, Stop-VM, Suspend-VM, and Shutdown-VM and etc to do as you wish.

0
 

Author Comment

by:soffcec
ID: 35075608
I have installed Hyper-V Powershell Library. and the commands are working, but how can I start them from scheduled tasks ?
0
 
LVL 12

Accepted Solution

by:
Sommerblink earned 500 total points
ID: 35134068
You can use Scheduled Tasks to launch PS scripts. See http://technet.microsoft.com/en-us/library/ee176949.aspx#EBAA for how to launch powershell scripts from command line

Or you can use the CLI command 'at'
Check out the switch options at http://support.microsoft.com/kb/313565
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question