{"id":1653,"date":"2025-10-26T23:54:26","date_gmt":"2025-10-26T23:54:26","guid":{"rendered":"https:\/\/www.ultrexstaff.com\/?p=1653"},"modified":"2025-10-26T23:54:27","modified_gmt":"2025-10-26T23:54:27","slug":"network-magic-fix-automated-script-to-disable-then-re-enable-network-drivers","status":"publish","type":"post","link":"https:\/\/www.ultrexstaff.com\/?p=1653","title":{"rendered":"Network Magic Fix: automated script to disable then re-enable network drivers"},"content":{"rendered":"\n<p>Here\u2019s how you make an automated script to disable then re-enable network drivers:<\/p>\n\n\n\n<p>In either Notepad or Notepad++, create a new file.<\/p>\n\n\n\n<p>Copy and paste this text below into your program:<\/p>\n\n\n\n<p># Disable all network adapters<br>Get-NetAdapter | Disable-NetAdapter -Confirm:$false<br><br># Wait for 5 seconds<br>Start-Sleep -Seconds 5<br><br># Enable all network adapters<br>Get-NetAdapter | Enable-NetAdapter -Confirm:$false<\/p>\n\n\n\n<p>Once you\u2019ve pasted it in there, go to File and select \u201cSave As\u201d<\/p>\n\n\n\n<p>Name the file DisableEnableNetwork.ps1 and change the File Type to All.<\/p>\n\n\n\n<p>Make sure this get\u2019s saved somewhere that isn\u2019t going to be easily accessible by clients.<\/p>\n\n\n\n<p>Next, on your desktop home screen, right click anywhere on the screen, and select \u201cNew\u201d in the drop down.<\/p>\n\n\n\n<p>Click \u201cShortcut\u201d<\/p>\n\n\n\n<p>In the box that shows up, in the location field enter:<\/p>\n\n\n\n<p>powershell.exe -ExecutionPolicy Bypass \u2013File &#8220;C:\\path\\to\\DisableEnableNetwork.ps1&#8221;<\/p>\n\n\n\n<p>Click Next<\/p>\n\n\n\n<p>Give the shortcut a cool, hip name like &#8220;Network Magic Fix&#8221;, \u201cInternet Fix Voodoo\u201d or \u201cWifi Problem Solver\u201d and hit save.<\/p>\n\n\n\n<p>Now when the shortcut is double clicked, it\u2019ll disable then re-enable all network drivers which should fix the problem utun has been causing (until it does it again, then click the shortcut again)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here\u2019s how you make an automated script to disable then re-enable network drivers: In either Notepad or Notepad++, create a new file. Copy and paste this text below into your program: # Disable all network adaptersGet-NetAdapter | Disable-NetAdapter -Confirm:$false # Wait for 5 secondsStart-Sleep -Seconds 5 # Enable all network adaptersGet-NetAdapter | Enable-NetAdapter -Confirm:$false Once [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[121],"tags":[],"class_list":["post-1653","post","type-post","status-publish","format-standard","hentry","category-networking","post-preview"],"_links":{"self":[{"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/posts\/1653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1653"}],"version-history":[{"count":1,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/posts\/1653\/revisions"}],"predecessor-version":[{"id":1654,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=\/wp\/v2\/posts\/1653\/revisions\/1654"}],"wp:attachment":[{"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ultrexstaff.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}