Skip to content

Instantly share code, notes, and snippets.

@pmarques
Last active February 15, 2018 23:30
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 pmarques/2d0d016db579126cf4ee6f59f7ec1519 to your computer and use it in GitHub Desktop.
Save pmarques/2d0d016db579126cf4ee6f59f7ec1519 to your computer and use it in GitHub Desktop.
Windows alias/functions
# How to install, tested in Windows Server R2012
# Write the functions in file %HOMEPATH\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
#
function checkPort {
New-Object System.Net.Sockets.TcpClient($args[0], $args[1])
}
# Test it
# C:\> checkPort "127.0.0.1" 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment