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
break | |
Test-NetConnection -ComputerName 2012r2-dc -Port 389 | |
Test-NetConnection -ComputerName 2012r2-dc -Port 5000 | |
Measure-Command -Expression {Test-NetConnection -ComputerName 2012r2-dc -Port 389} | |
Measure-Command -Expression {Test-NetConnection -ComputerName 2012r2-dc -Port 5000} | |
$tcp = New-Object System.Net.Sockets.TcpClient | |
$tcp | gm |
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
function Test-Parameters | |
{ | |
[CmdletBinding()] | |
Param | |
( | |
#----------------------- | |
# Parametro MachineName | |
#----------------------- | |
# Atributo [Parameter] + Argumentos |