{"id":208613,"date":"2024-01-19T10:04:42","date_gmt":"2024-01-19T10:04:42","guid":{"rendered":"https:\/\/www.ninjaone.com\/script-hub\/identificar-conexiones-ethernet-lentas\/"},"modified":"2024-03-04T18:10:04","modified_gmt":"2024-03-04T18:10:04","slug":"identificar-conexiones-ethernet-lentas","status":"publish","type":"script_hub","link":"https:\/\/www.ninjaone.com\/es\/script-hub\/identificar-conexiones-ethernet-lentas\/","title":{"rendered":"Script de Powershell para identificar conexiones Ethernet lentas en Windows"},"content":{"rendered":"<p>\u00a1Saludos a todos los guerreros de la tecnolog\u00eda! La resoluci\u00f3n de problemas de red no es una simple tarea, es un arte. Pero a veces, la tecnolog\u00eda puede hacer que este arte sea un poco menos abstracto. Hoy vamos a hablar de un <strong>script de PowerShell que <\/strong><strong>identifica <\/strong><strong>las conexiones Ethernet lentas, es decir, que funcionan a menos de 1 Gbps<\/strong>.<\/p>\n<h2>C\u00f3mo funciona el script de Powershell para identificar conexiones Ethernet lentas<\/h2>\n<h3><strong>Get-NetAdapter<\/strong><\/h3>\n<p>Este script utiliza el cmdlet <strong>Get-NetAdapter<\/strong> para obtener una lista de los adaptadores de red de tu sistema. <strong>Get-NetAdapter<\/strong> es un cmdlet integrado de PowerShell que recupera informaci\u00f3n b\u00e1sica y detallada sobre los adaptadores de red presentes en el sistema.<\/p>\n<h3><strong>Where-Object<\/strong><\/h3>\n<p>Una vez obtenida la lista, la funci\u00f3n <strong>Where-Object<\/strong> filtra los resultados en funci\u00f3n de determinadas condiciones, como omitir los adaptadores de red virtuales, tener en cuenta s\u00f3lo las conexiones activas o \u00abUp\u00bb y centrarse \u00fanicamente en las conexiones Ethernet por cable. As\u00ed evitar\u00e1s perder tiempo analizando datos irrelevantes.<\/p>\n<h3><strong>Select-Object<\/strong><\/h3>\n<p>Por \u00faltimo, la funci\u00f3n <strong>Select-Object<\/strong> formatea la salida para mostrar s\u00f3lo el los datos <strong>Name<\/strong>, <strong>InterfaceDescription<\/strong>, <strong>Status<\/strong> y <strong>LinkSpeed<\/strong> de los adaptadores de red que cumplen los criterios. As\u00ed obtendr\u00e1s un resultado condensado y f\u00e1cil de leer que se centra en los detalles esenciales.<\/p>\n<h2>El script: identifica si alguna conexi\u00f3n Ethernet por cable funciona a menos de 1 Gbps<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"powershell\">#Requires -Version 5.1\r\n\r\n&lt;#\r\n.SYNOPSIS\r\n    Identify if any wired ethernet connections that are running slower than 1 Gbps.\r\n.DESCRIPTION\r\n    Identify if any wired ethernet connections that are running slower than 1 Gbps.\r\n    This can highlight devices that are connected to old hubs\/switches or have bad cabling.\r\n.OUTPUTS\r\n    None\r\n.NOTES\r\n    Minimum supported OS: Windows 10, Server 2016\r\n    Release Notes:\r\n    Initial release\r\nBy using this script, you indicate your acceptance of the following legal terms as well as our Terms of Use at https:\/\/www.ninjaone.com\/terms-of-use.\r\n    Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms. \r\n    Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party. \r\n    Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library or website belonging to or under the control of any other software provider. \r\n    Warranty Disclaimer: The script is provided \u201cas is\u201d and \u201cas available\u201d, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations. \r\n    Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks. \r\n    Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script. \r\n    EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).\r\n#&gt;\r\n\r\n[CmdletBinding()]\r\nparam ()\r\n\r\nprocess {\r\n    $NetworkAdapters = Get-NetAdapter -ErrorAction SilentlyContinue | Where-Object {\r\n        $_.Virtual -eq $false -and # Filter out any adapter that are Virtual, like VPN's\r\n        $_.Status -like \"Up\" -and # Filter out any disconnected adapters\r\n        ($_.PhysicalMediaType -like \"*802.3*\" -or $_.NdisPhysicalMedium -eq 14) -and # Filter out adapters like Wifi\r\n        $_.LinkSpeed -notlike \"*Gbps\" # Filter out the 1, 2.5, and 10 Gbps network adapters\r\n    }\r\n    $NetworkAdapters | Select-Object Name, InterfaceDescription, Status, LinkSpeed\r\n    if ($NetworkAdapters) {\r\n        exit 1\r\n    }\r\n}<\/pre>\n<p>&nbsp;<\/p>\n\n<div class=\"in-context-cta\"><p>Accede a m\u00e1s de 300 scripts en el Dojo de NinjaOne<\/p>\n<p><a href=\"https:\/\/www.ninjaone.com\/es\/prueba-gratuita-formulario\/\">Obt\u00e9n acceso<\/a><\/p>\n<\/div>\n<h2>Ventajas de utilizar el script<\/h2>\n<h3><strong>Ahorro de tiempo<\/strong><\/h3>\n<p>Identificar manualmente las conexiones Ethernet lentas podr\u00eda llevar horas, especialmente en el entorno de una gran empresa. Este script automatiza ese proceso, convirtiendo una tarea potencialmente pesada en una tarea r\u00e1pida.<\/p>\n<h3><strong>Identificaci\u00f3n de posibles problemas<\/strong><\/h3>\n<p>Al marcar las conexiones de menos de 1 Gbps, el script te ayuda a identificar los puntos d\u00e9biles de tu infraestructura de red, lo que permite una reparaci\u00f3n proactiva antes de que se conviertan en problemas mayores.<\/p>\n<h3><strong>Informes<\/strong><\/h3>\n<p>Para quienes deseen controlar el rendimiento de la red a lo largo del tiempo, el script puede integrarse en sistemas automatizados para generar informes peri\u00f3dicos sobre conexiones Ethernet lentas.<\/p>\n<h2>C\u00f3mo ponerlo en pr\u00e1ctica<\/h2>\n<ul>\n<li><strong>Abre PowerShell con privilegios administrativos<\/strong>: haz clic con el bot\u00f3n derecho en el icono de PowerShell y elige \u00abEjecutar como administrador\u00bb.<\/li>\n<li><strong>Copia y pegua el script en la ventana de PowerShell<\/strong>: aseg\u00farate de haber copiado correctamente todo el script.<\/li>\n<li><strong>Pulsa Intro para ejecutar el script<\/strong>: el script se ejecutar\u00e1, y si encuentra alguna conexi\u00f3n Ethernet lenta, te lo notificar\u00e1.<\/li>\n<\/ul>\n<h2>Usar NinjaOne para mejorar la gesti\u00f3n de la red<\/h2>\n<h3><strong>Automatizaci\u00f3n de la ejecuci\u00f3n de scripts<\/strong><\/h3>\n<p>NinjaOne puede automatizar la ejecuci\u00f3n de este script PowerShell a intervalos que t\u00fa especifiques. Esta supervisi\u00f3n continua te permitir\u00e1 ir siempre por delante de cualquier posible ralentizaci\u00f3n.<\/p>\n<h3><strong>Elaboraci\u00f3n de informes<\/strong><\/h3>\n<p>NinjaOne tambi\u00e9n te permite generar informes concisos y f\u00e1ciles de entender basados en los resultados del script. Esto puede ayudarte a analizar la velocidad de la red a lo largo del tiempo, identificar problemas cr\u00f3nicos e incluso cumplir los requisitos de conformidad.<\/p>\n<h3><strong>Integraci\u00f3n<\/strong><\/h3>\n<p>Y no olvidemos que NinjaOne se integra perfectamente con otras herramientas de gesti\u00f3n de red que puedas estar utilizando, creando as\u00ed una soluci\u00f3n de gesti\u00f3n unificada y centralizada.<\/p>\n<h2>Reflexiones finales<\/h2>\n<p>No dejes que las conexiones Ethernet lentas sean el cuello de botella de la <a href=\"https:\/\/www.ninjaone.com\/es\/eficiencia\">productividad de tu equipo<\/a>. Utiliza este script PowerShell para una r\u00e1pida identificaci\u00f3n y resoluci\u00f3n del problema. Y si quieres pasar al siguiente nivel, aprovecha las potentes capacidades de NinjaOne para gestionar, analizar y <a href=\"https:\/\/www.ninjaone.com\/es\/supervision-gestion-de-endpoints\/supervision-de-redes\/\">proteger tu infraestructura de red<\/a>.<\/p>\n","protected":false},"author":35,"featured_media":206974,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","_lmt_disableupdate":"no","_lmt_disable":""},"operating_system":[4212],"use_cases":[4265],"class_list":["post-208613","script_hub","type-script_hub","status-publish","has-post-thumbnail","hentry","script_hub_category-windows"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/script_hub\/208613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/script_hub"}],"about":[{"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/types\/script_hub"}],"author":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/comments?post=208613"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/media\/206974"}],"wp:attachment":[{"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/media?parent=208613"}],"wp:term":[{"taxonomy":"script_hub_category","embeddable":true,"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/operating_system?post=208613"},{"taxonomy":"use_cases","embeddable":true,"href":"https:\/\/www.ninjaone.com\/es\/wp-json\/wp\/v2\/use_cases?post=208613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}