Skip to content

Instantly share code, notes, and snippets.

@PrateekKumarSingh
Last active May 9, 2017 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PrateekKumarSingh/b9fc92de02ec17bbf24ff4352fa922e6 to your computer and use it in GitHub Desktop.
Save PrateekKumarSingh/b9fc92de02ec17bbf24ff4352fa922e6 to your computer and use it in GitHub Desktop.
Import-Csv "C:\Users\prateeksingh\Downloads\service-names-port-numbers.csv"|`
Where-Object {$_.'Port Number'} |select @{n='Port';e={$_.'Port number'}},`
@{n='Service';e={$_.'Service Name'}},`
@{n='Protocol';e={$_.'Transport Protocol'}},`
'Description'|ConvertTo-Csv -NoTypeInformation|clip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment