Parity123
asked on
Powershell: Check if WinRM is listening
Hello experts,
Please assist.
I am looking for a script to loop through 700 domain controllers and check if the winrm is listening. The output should be
computer name, result
The result will be YES if it is listening or NO.
Please help me complete this.
$output = @()
$computers = gc computers.txt
foreach ($computer in $computers) {
$output += test-wsman $computer
}
Please assist.
I am looking for a script to loop through 700 domain controllers and check if the winrm is listening. The output should be
computer name, result
The result will be YES if it is listening or NO.
Please help me complete this.
$output = @()
$computers = gc computers.txt
foreach ($computer in $computers) {
$output += test-wsman $computer
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
Open in new window