Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 546
  • Last Modified:

How to I put VM to sleep/save

I have VM in Hyper-V who I want to put to save state and wakeup from command line. Is that possible ?
0
soffcec
Asked:
soffcec
  • 2
2 Solutions
 
SommerblinkCommented:
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
 
soffcecManagerAuthor Commented:
I have installed Hyper-V Powershell Library. and the commands are working, but how can I start them from scheduled tasks ?
0
 
SommerblinkCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now