Ports, Protocols, and Services

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Matt Bloomfield Matt Bloomfield 1 month, 1 week ago.

  • Author
    Posts
  • #56401
    Profile photo of Michael Luckett
    Michael Luckett
    Participant

    I know how to grab services off of remote machines because most tutorials wear get-service out. I am having trouble finding anything in PowerShell v3 to help with the ports part of the equation. Are there any cmdlets that allow you to scan a computer's ports?

  • #56459
    Profile photo of Matt Bloomfield
    Matt Bloomfield
    Participant

    Not aware of anything in version 3. Version 4 added Test-NetConnection which sort of adds that functionality but I suspect you'd have to work a bit of magic like Boe Prox did with ping to make it useful.

    While non-native PowerShell solutions do exist, I'd be inclined to use nmap for the port scanning and parse its XML output with PowerShell.

You must be logged in to reply to this topic.