Restart Multiple Computers based on AD Group & Monitor RRS feed

  • Question

  • I want to Restart multiple computers based on AD Group Membership & then monitor there up status. I can't find a script that already does this. Any thoughts on how to accomplish this?

    Monday, October 10, 2016 12:54 PM


  • Something like this should work but the monitoring would be harder unless you want to add the -wait parameter to the restart-computer commandlet.

    $computers=Get-ADGroupMember -Identity 'Test-ComputerGroup'
    ForEach ($computer in $computers) {
    Restart-Computer -ComputerName $ -Whatif


    get-help restart-computer -online

    Will take you to the online help

    Dave Barker

    • Marked as answer by cfreeman21 Monday, October 10, 2016 7:18 PM
    Monday, October 10, 2016 5:33 PM

All replies