{"id":28591236,"url":"https://github.com/noderaven/update-lsoandtest","last_synced_at":"2025-06-11T09:14:10.892Z","repository":{"id":298378950,"uuid":"999786654","full_name":"noderaven/Update-LSOAndTest","owner":"noderaven","description":"Disables Large Send Offload (LSO) on active network adapters, tests connectivity, and attempts remediation steps if the network is down.","archived":false,"fork":false,"pushed_at":"2025-06-10T19:46:14.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-10T20:41:52.592Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noderaven.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-10T19:33:49.000Z","updated_at":"2025-06-10T19:46:18.000Z","dependencies_parsed_at":"2025-06-10T20:41:57.632Z","dependency_job_id":"728806fb-3cd6-43a8-8708-0b0f15384ebc","html_url":"https://github.com/noderaven/Update-LSOAndTest","commit_stats":null,"previous_names":["noderaven/update-lsoandtest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noderaven%2FUpdate-LSOAndTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noderaven%2FUpdate-LSOAndTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noderaven%2FUpdate-LSOAndTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noderaven%2FUpdate-LSOAndTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noderaven","download_url":"https://codeload.github.com/noderaven/Update-LSOAndTest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noderaven%2FUpdate-LSOAndTest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259236395,"owners_count":22826309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-11T09:13:55.047Z","updated_at":"2025-06-11T09:14:10.879Z","avatar_url":"https://github.com/noderaven.png","language":"PowerShell","readme":"# Update-LSOAndTest\n\nA PowerShell script to disable Large Send Offload (LSO) on active network adapters, test connectivity, and attempt remediation if the network is down.\n\n## Overview\n\nThis script addresses network connectivity issues potentially caused by Large Send Offload (LSO) settings. It is designed for safe, non-interactive remote execution with detailed output, compatible with both Windows PowerShell and PowerShell Core (6+).\n\n### Key Features\n- Ensures execution with Administrator privileges.\n- Targets physical network adapters with 'Up' status.\n- Disables LSO v2 for IPv4 and IPv6.\n- Exits if no changes are needed, assuming a healthy network.\n- Tests connectivity after changes, with remediation steps (adapter restart, optional system reboot) if tests fail.\n\n## Requirements\n- PowerShell 5.1 or later\n- Administrator privileges (`#requires -RunAsAdministrator`)\n\n## Installation\n1. Clone or download this repository:\n   ```bash\n   git clone https://github.com/your-username/Update-LSOAndTest.git\n   ```\nNavigate to the script directory:cd Update-LSOAndTest\n\n\n\n## Usage\nRun the script in an elevated PowerShell session.\nBasic Execution\n``` PowerShell\n.\\Update-LSOAndTest.ps1\n```\n\nExecutes with default settings, providing detailed output.\nForce Reboot on Failure\n``` PowerShell\n.\\Update-LSOAndTest.ps1 -ForceReboot\n```\n\nAutomatically restarts the computer if network remediation fails.\nParameters\n\n-PingTargets \u003cString[]\u003e: IP addresses or hostnames for connectivity tests (default: 8.8.8.8, 1.1.1.1).\n-InitialWaitSeconds \u003cInt\u003e: Seconds to wait after disabling LSO before testing (default: 45).\n-ReinitializeWaitSeconds \u003cInt\u003e: Seconds to wait after restarting adapters (default: 30).\n-ForceReboot: Forces a system restart if the second connectivity test fails.\n\n## Script Workflow\n```\nCheck Privileges: Ensures Administrator rights.\nFind Adapters: Filters for active, physical network adapters.\nDisable LSO: Sets LSO v2 (IPv4/IPv6) to 'Disabled' on each adapter.\nExit if No Changes: If LSO settings are already correct, the script exits.\nTest Connectivity: After a delay, pings specified targets.\nRemediation:\nIf the first test fails, restarts adapters and tests again.\nIf the second test fails, recommends a reboot (or forces it with -ForceReboot).\n```\n\n\n## Example Output\n```\nSearching for active, physical network adapters...\nFound 1 active adapter(s): Ethernet\nProcessing property 'Large Send Offload V2 (IPv4)' for adapter 'Ethernet'\n[Ethernet] Successfully set 'Large Send Offload V2 (IPv4)' to 'Disabled'.\nWaiting for 45 seconds for network to stabilize after changes...\nPerforming first network connection test...\nPinging 8.8.8.8...\nPing to 8.8.8.8 was successful.\nNetwork connection is ACTIVE. Script finished successfully.\n```\n\n## Notes\n\nAuthor: Gemini\nDate: 2025-06-09\nBased on: Original script by Riley\nThe script uses Test-Connection for robust ping tests, adapting to PowerShell version differences (-ComputerName for 5.1, -TargetName for 6+).\nUse -WhatIf to simulate actions without making changes.\n\n## Contributing\n\nFork the repository.\nCreate a feature branch (git checkout -b feature/YourFeature).\nCommit changes (git commit -m 'Add YourFeature').\nPush to the branch (git push origin feature/YourFeature).\nOpen a Pull Request.\n\n## License\nThis project is licensed under the MIT License - see the LICENSE file for details.```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoderaven%2Fupdate-lsoandtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoderaven%2Fupdate-lsoandtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoderaven%2Fupdate-lsoandtest/lists"}