none
Mass Reboot of PC's RRS feed

  • Question

  • Hello,

    I have what might be a simple question however i am not finding an answer anywhere. I am tasked with doing the following.

    Reboot computers in the collection at a specific time. (I am able to do that via simple package that contain one line command to reboot them) This works fine if the computers are on the network and are online. But quite a few of our employees work from home over the weekend so therefore computers are not in the office. I am rebooting computers at 7 am Monday, what would happen if a user comes in at 9 am? Will the computer still reboot? How long after when computer is on the network should reboot be expected? Any way to speed this process up? 

    Saturday, January 18, 2020 4:28 AM

Answers

  • Then you simply specify contrainedreboot.bat 0700 0900 for the command line in the program and also set the schedule for the deployment to occur at 0700 every week or every day or how often you want it to run.


    Jason | https://home.configmgrftw.com | @jasonsandys

    • Marked as answer by Eugene1978 Tuesday, January 21, 2020 7:40 PM
    Monday, January 20, 2020 2:53 PM

All replies

  • It depend. How exactly are you deploying this and with exactly what settings? 

    Garth Jones

    Blog: https://www.enhansoft.com/blog Old Blog: https://sccmug.ca/

    Twitter: @GarthMJ Book: System Center Configuration Manager Reporting Unleashed

    Saturday, January 18, 2020 5:44 PM
    Moderator
  • My Setup looks like this.

    Sunday, January 19, 2020 3:31 AM
  • Hi,

    I have found the new scripting method to be exceptional for fast action. It would also only apply to online systems.

    You could try it out on a small collection first and decide from there.

    https://docs.microsoft.com/en-us/configmgr/apps/deploy-use/create-deploy-scripts

    Sunday, January 19, 2020 7:41 PM
  • See https://home.configmgrftw.com/packageprogram-deployment-execution-time/

    Jason | https://home.configmgrftw.com | @jasonsandys

    Sunday, January 19, 2020 10:20 PM
  • See https://home.configmgrftw.com/packageprogram-deployment-execution-time/

    Jason | https://home.configmgrftw.com | @jasonsandys


    Interesting solution, but what if I need to do that in the morning? How would I reference the time?
    Monday, January 20, 2020 3:29 AM
  • Hi,

    What is you requirements? You set computers reboot at 7 am, and when a user comes in at 9 am, do you want to reboot his computer too? 

    Regards,
    Allen

    Please remember to mark the replies as answers if they help.

    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, January 20, 2020 7:59 AM
  • Hi,

    What is you requirements? You set computers reboot at 7 am, and when a user comes in at 9 am, do you want to reboot his computer too? 

    Regards,
    Allen

    Please remember to mark the replies as answers if they help.

    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Hi, yes that is correct.
    Monday, January 20, 2020 8:04 AM
  • Then you simply specify contrainedreboot.bat 0700 0900 for the command line in the program and also set the schedule for the deployment to occur at 0700 every week or every day or how often you want it to run.


    Jason | https://home.configmgrftw.com | @jasonsandys

    • Marked as answer by Eugene1978 Tuesday, January 21, 2020 7:40 PM
    Monday, January 20, 2020 2:53 PM
  • Then you simply specify contrainedreboot.bat 0700 0900 for the command line in the program and also set the schedule for the deployment to occur at 0700 every week or every day or how often you want it to run.


    Jason | https://home.configmgrftw.com | @jasonsandys

    I am going to test this, this looks very very interesting and more promising!  
    Tuesday, January 21, 2020 7:42 PM
  • Then you simply specify contrainedreboot.bat 0700 0900 for the command line in the program and also set the schedule for the deployment to occur at 0700 every week or every day or how often you want it to run.


    Jason | https://home.configmgrftw.com | @jasonsandys

    So for some reason script does not work for me. I modified it to be as follows.

    @ECHO OFF
     
    set H=%TIME:~0,2%
    set M=%TIME:~3,2%
     
    set NOW=%H%%M%
     
    if %NOW% LSS %1 exit /b 0
    if %NOW% GTR %2 exit /b 0
     
    %windir%\system32\shutdown.exe /r /t 30 "Restart initiated by ConstrainedReboot script via a ConfigMgr deployment." 
    

    Tuesday, January 21, 2020 9:37 PM
  • Did you test this outside of ConfigMgr?

    What does execmgr.log say?


    Jason | https://home.configmgrftw.com | @jasonsandys

    Tuesday, January 21, 2020 9:50 PM
  • Did you test this outside of ConfigMgr?

    What does execmgr.log say?


    Jason | https://home.configmgrftw.com | @jasonsandys

    This is the only thing that jumps at me from that log.

    Auto Install is set to false. Do Nothing.

    Tuesday, January 21, 2020 9:53 PM
  • One log line is pretty meaningless but it looks like you didn't set your deployment to required and so it's not even run and won't because it's not required.

    Jason | https://home.configmgrftw.com | @jasonsandys

    Wednesday, January 22, 2020 1:16 AM
  • One log line is pretty meaningless but it looks like you didn't set your deployment to required and so it's not even run and won't because it's not required.

    Jason | https://home.configmgrftw.com | @jasonsandys

    hmm, let me check on that...
    Wednesday, January 22, 2020 5:15 PM