Powershell – Search Computer Names

I wanted a way to server for servers with specific partial names. For example, lets say I’m searching for servers with the word print in it name. Maybe I’m looking for print servers so we can take advantage of “PrintNightmare” :).

Get-ADComputer -Filter "Name -like '*print*'" -Properties OperatingSystem | Select-Object Name, OperatingSystem
More Stories
F5 Oracle RAC Load Balancing