Question: PowerShell : What do these command do? Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=$true -ComputerName . | Format-Table -Property IPAddress 1..254| ForEach-Object -Process {Get-WmiObject -Class Win32_PingStatus -Filter
PowerShell : What do these command do?
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=$true -ComputerName . | Format-Table -Property IPAddress
1..254| ForEach-Object -Process {Get-WmiObject -Class Win32_PingStatus -Filter ("Address='192.168.1." + $_ + "'") -ComputerName .} | Select-Object -Property Address,ResponseTime,StatusCode
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
