Alle WinRM Server

Dieser Befehl liefert nur die Windows Server, welche über WinRM (PowerShell Remoting) erreichbar sind.

Voraussetzung ist das Modul pssharedgoods

$WinRMComputers = ((Get-ADComputer -Filter * -Properties operatingsystem | ? {$_.operatingsystem -like "*server*"}).dnshostname | % {Test-WinRM -ComputerName $_ | ? {$_.status -eq $true}}).computername