PowerShell Scripts, Tips, Expert Advices, Forums, and Resources

image rotation

Welcome to PowerShell.com, the educational and community site for Windows PowerShell People. Get a quick overview.

Latest Forum Posts

07-28-2014 - combine and output arrays?
07-28-2014 - foreach loop
07-28-2014 - iphone cases sale 9fxw o2hx XLvYf

Latest Blog Posts

07-28-2014 - PowerTip: Start PowerShell with No Profile
07-28-2014 - I Wanna Be Like You
07-28-2014 - Hibernate System

As a Powershell.com member you will have access to:

  • Daily PowerShell tips written by Microsoft MVPs and other leading Windows PowerShell experts
  • Free Windows PowerShell advice and training provided by Microsoft MVPs and other leading Windows PowerShell experts
  • Access to leading Windows PowerShell blogs
  • A free ebook, Mastering PowerShell, written by Microsoft MVP Dr. Tobias Weltner
PowerTip of the Day

Hibernate System

All PowerShell versions

Here is a simple system call that will hibernate a system (provided of course that hibernation is enabled):

function Start-Hibernation
{
  rundll32.exe PowrProf.dll, SetSuspendState 0,1,0
}

Note that this call is case-sensitive!

Twitter This Tip! ReTweet this Tip!

Copyright 2012 PowerShell.com. All rights reserved.