Restart computer


Hi All ,

I need to restart 4000 machine with SCCM and also I need to give 3 hours buffer time to user with custom message dialogue box to restart which method I can use ?



solved 0
Ketan Kamble 8 months 8 Answers 181 views Beginner 0

Answers ( 8 )

  1. Please close this thread


    Thanks you all . I used the tool from above link.

    It is very very awesome .Please try it once 🙂

  3. Have you checked any options in custom task sequence?

    Also for above script what version of powershell you are using? Is that script supportable for that version?

  4. – Had you tried to execute script manually? It seems you don’t have permission to Bypass the Execution Policy.

    Please add details or logs that would be helpful, Else you can try to Run PS1 file with Scheduler without using the ServiceUI.

  5. PS C:\Test> .\ServiceUI.exe -process:.\TsProgressUI.exe -NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -File CustomRestart.ps1

    Matched Processes
    Process Not Found: [.\TsProgressUI.exe]

    Exiting with [-1]

    ServiceUI.exe -process:TSProgressUI.exe %SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -File CustomRestart.ps1

    both the options are not working

  6. I tested this a long time ago, It was working fine for me!!

    Did you checked manually before executing through SCCM, Verifed the scheduler

  7. I tried this script Jitesh , but somehow i am not seeing the deployment in software

  8. Hello Ketan, You can use custom script to notify users, Modify according to your requirements.

    Best answer

Leave an answer

Sorry, you do not have a permission to answer to this question .