Last active
February 15, 2018 23:30
-
-
Save pmarques/2d0d016db579126cf4ee6f59f7ec1519 to your computer and use it in GitHub Desktop.
Windows alias/functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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