{"id":208107,"date":"2023-09-20T12:46:25","date_gmt":"2023-09-20T12:46:25","guid":{"rendered":"https:\/\/www.ninjaone.com\/script-hub\/identificare-le-connessioni-ethernet-lente-powershell-2\/"},"modified":"2024-03-04T18:09:29","modified_gmt":"2024-03-04T18:09:29","slug":"identificare-le-connessioni-ethernet-lente-powershell-2","status":"publish","type":"script_hub","link":"https:\/\/www.ninjaone.com\/it\/script-hub\/identificare-le-connessioni-ethernet-lente-powershell-2\/","title":{"rendered":"Script PowerShell per individuare le connessioni Ethernet lente in Windows"},"content":{"rendered":"<p><span class=\"TextRun SCXW9145823 BCX0\" lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW9145823 BCX0\">Un saluto a <\/span><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW9145823 BCX0\">te, <\/span>guerriero tecnologico.<span class=\"NormalTextRun SCXW9145823 BCX0\"> La risoluzione dei problemi di rete <\/span><span class=\"NormalTextRun SCXW9145823 BCX0\">non <\/span>\u00e8<span class=\"NormalTextRun SCXW9145823 BCX0\"> solo un\u2019attivit\u00e0, <\/span><span class=\"NormalTextRun SCXW9145823 BCX0\">\u00e8<\/span><span class=\"NormalTextRun SCXW9145823 BCX0\"> una forma d&#8217;arte. Ma a volte la tecnologia pu\u00f2 rendere quest&#8217;arte un po&#8217; meno astratta. Oggi <\/span><span class=\"NormalTextRun SCXW9145823 BCX0\">parleremo<\/span><span class=\"NormalTextRun SCXW9145823 BCX0\"> di uno <strong>script PowerShell che <\/strong><\/span><strong><span class=\"NormalTextRun SCXW9145823 BCX0\"> identifica<\/span><\/strong><span class=\"NormalTextRun SCXW9145823 BCX0\"><strong> connessioni Ethernet lente, con velocit\u00e0 inferiore a 1 Gbps<\/strong>.<\/span><\/span><span class=\"EOP SCXW9145823 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<h2>Come funziona lo script per individuare connessioni Ethernet lente<\/h2>\n<h3 aria-level=\"3\"><b><span data-contrast=\"none\">Get-NetAdapter<\/span><\/b><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:40,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"none\">Questo script utilizza il cmdlet <\/span><b><span data-contrast=\"none\">Get-NetAdapter<\/span><\/b><span data-contrast=\"none\"> per ottenere un elenco delle schede di rete presenti sul tuo sistema. <\/span><b><span data-contrast=\"none\">Get-NetAdapter<\/span><\/b><span data-contrast=\"none\"> \u00e8 un cmdlet PowerShell che recupera informazioni di base e dettagliate sulle schede di rete presenti nel sistema.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;201341983&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<h3 aria-level=\"3\"><b><span data-contrast=\"none\">Where-Object<\/span><\/b><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:40,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"none\">Dopo aver recuperato l&#8217;elenco, la funzione <\/span><b><span data-contrast=\"none\">Where-Object<\/span><\/b><span data-contrast=\"none\"> filtra i risultati in base a condizioni specifiche, come l&#8217;esclusione delle schede di rete virtuali, il prendere in considerazione le sole connessioni &#8216;Up&#8217; o attive e concentrarsi solo sulle connessioni cablate, per individuare connessioni Ethernet lente. In questo modo eviterai di passare il tempo ad analizzare dati irrilevanti.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;201341983&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<h3 aria-level=\"3\"><b><span data-contrast=\"none\">Select-Object<\/span><\/b><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:40,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"none\">Infine, la funzione <\/span><b><span data-contrast=\"none\">Select-Object<\/span><\/b><span data-contrast=\"none\"> formatta l&#8217;output per mostrare solo i dati <\/span><b><span data-contrast=\"none\">Name<\/span><\/b><span data-contrast=\"none\">, <\/span><b><span data-contrast=\"none\">InterfaceDescription<\/span><\/b><span data-contrast=\"none\">, <\/span><b><span data-contrast=\"none\">Status<\/span><\/b><span data-contrast=\"none\"> e <\/span><b><span data-contrast=\"none\">LinkSpeed<\/span><\/b><span data-contrast=\"none\"> delle schede di rete che soddisfano i criteri. In questo modo potrai ottenere un risultato compatto e di facile lettura che si concentra sui dettagli essenziali.<\/span><\/p>\n<h2><span class=\"TextRun SCXW222436873 BCX0\" lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW222436873 BCX0\" data-ccp-parastyle=\"heading 2\">Lo script: <\/span><span class=\"NormalTextRun SCXW222436873 BCX0\" data-ccp-parastyle=\"heading 2\">Identificare<\/span><span class=\"NormalTextRun SCXW222436873 BCX0\" data-ccp-parastyle=\"heading 2\"> se ci sono connessioni Ethernet lente, con velocit\u00e0 inferiore a 1 Gbps<\/span><\/span><\/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>Accedi a oltre 700 script nel Dojo di NinjaOne<\/p>\n<p><a href=\"https:\/\/www.ninjaone.com\/it\/prova-gratuita\/\">Ottieni l&#8217;accesso<\/a><\/p>\n<\/div>\n<h2 aria-level=\"2\"><span data-contrast=\"none\">Vantaggi dell&#8217;utilizzo dello script<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:40,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h2>\n<h3 aria-level=\"3\"><b><span data-contrast=\"none\">Risparmio di tempo<\/span><\/b><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:40,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"none\">L&#8217;identificazione manuale delle connessioni Ethernet lente potrebbe richiedere ore, soprattutto in una grande azienda. Questo script automatizza il processo, trasformando un\u2019attivit\u00e0 potenzialmente faticosa in un compito rapido.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;201341983&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<h3 aria-level=\"3\"><b><span data-contrast=\"none\">Identificazione di potenziali problemi<\/span><\/b><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:40,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"none\">Segnalando le connessioni Ethernet lente, con velocit\u00e0 inferiore a 1 Gbps, lo script ti aiuter\u00e0 a identificare i punti deboli della tua infrastruttura di rete, consentendoti di porre rimedio in modo proattivo prima che si trasformino in problemi pi\u00f9 gravi.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;201341983&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<h3 aria-level=\"3\"><b><span data-contrast=\"none\">Reporting<\/span><\/b><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:40,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"none\">Per coloro che desiderano tenere sotto controllo le prestazioni della rete nel tempo, lo script pu\u00f2 essere integrato in sistemi automatizzati per generare rapporti regolari sulle connessioni Ethernet lente.<\/span><\/p>\n<h2 aria-level=\"2\"><span data-contrast=\"none\">Come implementarlo<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:40,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h2>\n<ul>\n<li><b><span data-contrast=\"none\">Apri PowerShell con privilegi amministrativi<\/span><\/b><span data-contrast=\"none\">: Clicca con il tasto destro del mouse sull&#8217;icona di PowerShell e scegli &#8220;Esegui come amministratore&#8221;<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;201341983&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/li>\n<li><b><span data-contrast=\"none\">Copia e incolla lo script nella finestra di PowerShell<\/span><\/b><span data-contrast=\"none\">: Assicurati di aver copiato accuratamente l&#8217;intero script.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;134233118&quot;:false,&quot;201341983&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/li>\n<li><b><span data-contrast=\"none\">Premi Invio per eseguire lo script<\/span><\/b><span data-contrast=\"none\">: Lo script verr\u00e0 eseguito e, se trova connessioni Ethernet lente, le elencher\u00e0.<\/span><\/li>\n<\/ul>\n<h2><span class=\"TextRun SCXW156954359 BCX0\" lang=\"EN-US\" data-contrast=\"none\"><span class=\"NormalTextRun SCXW156954359 BCX0\" data-ccp-parastyle=\"heading 2\">Sfruttare <\/span><span class=\"NormalTextRun SpellingErrorV2Themed SCXW156954359 BCX0\" data-ccp-parastyle=\"heading 2\">NinjaOne<\/span><span class=\"NormalTextRun SCXW156954359 BCX0\" data-ccp-parastyle=\"heading 2\"> per una migliore gestione della rete<\/span><\/span><\/h2>\n<h3 aria-level=\"3\"><b><span data-contrast=\"none\">Automatizzare l&#8217;esecuzione degli script<\/span><\/b><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:40,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"none\">NinjaOne pu\u00f2 automatizzare l&#8217;esecuzione di questo script PowerShell per verificare la presenza di connessioni Ethernet lente, con intervalli specificati da te. Questo monitoraggio continuo ti permetter\u00e0 sempre in anticipo su qualsiasi potenziale rallentamento.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;201341983&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<h3 aria-level=\"3\"><b><span data-contrast=\"none\">Reporting<\/span><\/b><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:40,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"none\">NinjaOne pu\u00f2 anche generare rapporti concisi e di facile comprensione basati sui risultati dello script che individua connessioni Ethernet lente. Questo potrebbe aiutarti ad analizzare la velocit\u00e0 della rete nel tempo, a identificare i problemi cronici e anche a soddisfare i requisiti di conformit\u00e0.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;201341983&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<h3 aria-level=\"3\"><b><span data-contrast=\"none\">Integrazione<\/span><\/b><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:40,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h3>\n<p><span data-contrast=\"none\">E non tralasciamo il fatto che NinjaOne si integra perfettamente con altri strumenti di gestione della rete che potresti gi\u00e0 stare utilizzando, andando cos\u00ec a creare una soluzione di gestione centralizzata e unificata.<\/span><\/p>\n<h2 aria-level=\"2\"><span data-contrast=\"none\">Considerazioni finali<\/span><span data-ccp-props=\"{&quot;134245418&quot;:true,&quot;134245529&quot;:true,&quot;201341983&quot;:0,&quot;335559738&quot;:40,&quot;335559739&quot;:0,&quot;335559740&quot;:259}\">\u00a0<\/span><\/h2>\n<p><span data-contrast=\"none\">Non lasciare che le connessioni Ethernet lente siano il collo di bottiglia della <a href=\"https:\/\/www.ninjaone.com\/it\/efficienza-it\">produttivit\u00e0 del tuo team<\/a>. Utilizza questo script PowerShell per una rapida identificazione e per la risoluzione del problema. E se vuoi migliorare ulteriormente la tua situazione, sfrutta le potenti funzionalit\u00e0 di NinjaOne per gestire, analizzare e <a href=\"https:\/\/www.ninjaone.com\/it\/gestione-endpoint\/gestione-network\/\">rendere sicura la tua infrastruttura di rete<\/a>.<\/span><span data-ccp-props=\"{&quot;134233117&quot;:false,&quot;201341983&quot;:0,&quot;335559738&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n","protected":false},"author":35,"featured_media":206969,"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":[4275],"class_list":["post-208107","script_hub","type-script_hub","status-publish","has-post-thumbnail","hentry","script_hub_category-windows","use_cases-configurazione-del-sistema"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.ninjaone.com\/it\/wp-json\/wp\/v2\/script_hub\/208107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ninjaone.com\/it\/wp-json\/wp\/v2\/script_hub"}],"about":[{"href":"https:\/\/www.ninjaone.com\/it\/wp-json\/wp\/v2\/types\/script_hub"}],"author":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/it\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/it\/wp-json\/wp\/v2\/comments?post=208107"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ninjaone.com\/it\/wp-json\/wp\/v2\/media\/206969"}],"wp:attachment":[{"href":"https:\/\/www.ninjaone.com\/it\/wp-json\/wp\/v2\/media?parent=208107"}],"wp:term":[{"taxonomy":"script_hub_category","embeddable":true,"href":"https:\/\/www.ninjaone.com\/it\/wp-json\/wp\/v2\/operating_system?post=208107"},{"taxonomy":"use_cases","embeddable":true,"href":"https:\/\/www.ninjaone.com\/it\/wp-json\/wp\/v2\/use_cases?post=208107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}