1 2 3 4 5 6 7 |
Get-Content .\equipos.txt | %{invoke-command -ComputerName $_ -ScriptBlock { Hostname >> fich.txt ipconfig >> fich.txt Get-WmiObject -Class Win32_NetworkAdapter | Where-Object { $_.Speed -ne $null -and $_.MACAddress -ne $null } | Format-Table -Property Name,NetConnectionID,Speed,MACAddress >> fich.txt '------------------------------------------' >> fich.txt } } |