/ Published in: Windows PowerShell
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 ############################################################# ## ## www.eneseblog.com ## ## testPort.ps1: Comprueba la visibilidad de un puerto entre ## el host y la ip destino. ## ## De vb.Net a PS1 el 07/09/2011. ## ############################################################# param($ip,$port) echo "Dirección IP: $ip" echo "Puerto TCP: $port" $connection = new-object net.Sockets.TcpClient try { $connection.connect($ip,$port) $connection.close() echo "Puerto $port abierto" } catch { echo "Puerto $port cerrado" }
Comments
                    Subscribe to comments
                
                