Green Computing with SCCM 20007 and Vista

The current global economy is prompting corporations to do everything possible to save money.  Employees are being asked to turn off their computers and monitors when they leave the office, but we know that for one reason or another not everyone complies with this request.  As an SCCM administrator you have a unique opportunity to make a big impact in this area.  Windows Vista comes with a command line utility called shutdown.exe.  Shutdown.exe allows you to shutdown or reboot computers, but it also allows you to hibernate Windows Vista.  Most IT departments won't shutdown user computers at night because of the possibility of losing data on some work in progress that was left open and not saved.  With hibernation, we do not have that problem.  With hibernation the computer state is saved to the hard drive and the computer is then "shutdown".  When the computer is powered on, it is returned to the same state it was before hibernating so no work in progress gets lost.  It will be very easy to use SCCM to schedule "shutdown.exe /h" (/h switch for hibernation) every night.  First we need to identify the Windows Vista Workstations using a query based collection.  The following query could be used for the collection:

select * from sms_r_system where OperatingSystemNameAndVersion like 'Microsoft Windows NT%Workstation 6.0 %'

The next thing we will need is a package.  Our package won't even need source files since shutdown.exe is already on every Vista client.  You can create a program for the package with the following command line:

%windir%\system32\shutdown.exe /h

Finally, all we need to do is advertise our package to the Windows Vista collection.  You could create a schedule for the advertisement that will run the hibernation package for example every day at 7:00 P.M.  You have full control of when is the best time to do this in your environment.  You could also get creative and use SCCM's Wake-On-Lan and awake the computers in the Windows Vista Workstations collection early every morning.  That way the end users won't even know their computers were hibernating and saving energy all night.  I would be interested if any of you implement something like this in your environment.  If you do so, please leave a comment here.

Comments (3)

  1. Anonymous says:

    From Carlos’ blog : “ The current global economy is prompting corporations to do everything possible

  2. Anonymous says:

    Hi Carlos

    Great post and fitted in well with a discussion that I was having with some colleagues.

    It’s worth noting that the customer can also use the power profiles on their Windows VISTA workstaions to minimise power usage.  They can also use Desired Configuration Management EnergyStar templates to report on compliance.

  3. JE says:

    Why on earth wasn't the ability to automate client shutdown implemented as part of the "power management" features that SCCM 2007 R3 was soley released for?

    Third party software has been filling this void for years because Microsoft "screwed the pooch" with this one.

    Then they FINALLY release a way to manage power on clients uniformly across the enterprise, but leave this out!!

    WTG Microsoft.

Skip to main content