Tag Archives: network

Testing TCP Ports with a Possible Header Response

I wrote a function a while back as a quick means to not only check for an open port, but also to see if a header is sent back on the initial connection. The reasoning behind this was to help … Continue reading

Posted in powershell | Tagged , , | 1 Comment

Speedy Network Information Query Using PowerShell

Taking a page from my Advanced Event 2 script that I used in my Expert Commentary on Hey, Scripting Guy!, I wanted to put something together to query for basic networking information from both local and remote systems and accomplish … Continue reading

Posted in powershell, scripts | Tagged , , , | 19 Comments

Retrieving contents of Hosts file using PowerShell

I decided that I wanted a way to view all of the hosts file on a bunch of servers and see just what is listed.  Most of the code is fairly straight-forward where I use Test-Connection and Test-Path to validate … Continue reading

Posted in powershell, scripts | Tagged , , | 6 Comments

Quick Hits: Test Internet Access

A while back I was having all sorts of internet connection issues with my ISP.  The connection would drop and I would have to play the “click refresh” game with my browser and wait until the magical moment when I … Continue reading

Posted in powershell, scripts | Tagged , , | 10 Comments

Quick Hits: Ping Sweep One Liner

So I was curious as to how many active ip addresses I had on my network and didn’t feel like manually typing “ping <ipaddress>” and wait for it to timeout and then “rinse and repeat”.  Along comes Test-Connection and the … Continue reading

Posted in powershell | Tagged , , | 3 Comments