Solved

SCCM 2012 R2 auto shutdown computer at specific time

Posted on 2016-09-01
4
177 Views
Last Modified: 2016-09-26
i want to make the SCCM 2012 R2 shutdown computers that stay power on in the night, but i wat to have a report to view what computers stay power on or what computers shutdown whit the task of SCCM.

i test multiples 3 party options but i need to use SCCM for a corporate requeriment.
0
Comment
Question by:wolf77
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 17

Expert Comment

by:Mike T
ID: 41781420
Hi,

The simplest way is to create a PowerShell script and deploy that, so it creates a scheduled task. You have to decide if you want to brute force power off if the machine is logged on still, but other than that it's fairly straight-forward.

As far as I know there's no native way, using Power Management although that would be very nice!

For even more control you can use the script together Compliance (DCM) which offers reports of machines that do no comply, but otherwise you can use deployment reporting to monitor delivery of the script.

As far reporting which machines actually power off, I think that would be best done as another function in the script.

Mike
0
 

Author Comment

by:wolf77
ID: 41788613
Thks, i cant find a way to shutdown a Computer  Power Management, but im going to try DCM
0
 
LVL 17

Accepted Solution

by:
Mike T earned 500 total points (awarded by participants)
ID: 41788683
Yes - I'm not sure why MS have no option using Power Management, but in the absence of that there's PowerShell as I said. The Stop-computer cmdlet is one option, as discussed here: https://blogs.technet.microsoft.com/heyscriptingguy/2011/04/01/scripting-wife-uses-powershell-to-shut-down-computers.
I know shutdown.exe exists but it's easy to abort it and is external.

I did find a script to do this but I can't see to find it again! Here's how to create a schedule task anyway:

schtasks /CREATE /TN Shutdown /RU "SYSTEM" /TR "Powershell \"C:\Scripts\Shutdown.ps1\"" /SC ONSTART

Mike
0
 
LVL 17

Expert Comment

by:Mike T
ID: 41815717
There were no other answers and that is the only way that I know of; others require 3rd party tools which is not a good step if you can do something natively.
0

Featured Post

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

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

The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
Troubleshooting common task sequence error codes
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

763 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