Created: 8-18-21

Updated: 8-18-21

This is a quick article, but showcases a rather powerful command that allow you to reboot all servers and/or desktops based on a naming convention.

The following PowerShell command is quite useful for restart computers remote based on a common computer name for computer in a department:

Get-ADComputer -Filter * | Where { $_.Name -imatch 'SF-HR' } | foreach {restart-computer $_.name -force}

Cheers! 😀