Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to I put VM to sleep/save

Posted on 2011-03-06
3
Medium Priority
?
533 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 2000 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 2000 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

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as high-speed processing of the cloud.

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

916 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