Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Computers.txt is a text file with one computer name per line
- Get-Content -Path .\computers.txt | ForEach-Object { Invoke-Command -ComputerName $_ -ScriptBlock { Get-NetFirewallProfile } } | Select-Object -Property PSComputerName,Name,Enabled | Format-Table -Autosize
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement