Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##retornar nome e endereço das maquinas ligadas
- ##lista de computadores desejada.
- $computers = Get-Content C:\Users\eliel\Desktop\scritps_powershell\labin_c_pcs.txt
- $resultado = foreach ( $pc in $computers )
- {
- Test-Connection $pc -Verbose -ErrorAction Ignore | Sort-Object -Unique
- }
- $resultado | Format-Table address, IPV4Address -AutoSize | Out-File -FilePath C:\Users\seu_usuario\Desktop\nome_arquivo_de_saida.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement