Skip to content

Instantly share code, notes, and snippets.

@kemitchell
Created January 28, 2013 16:41
Show Gist options
  • Save kemitchell/4657062 to your computer and use it in GitHub Desktop.
Save kemitchell/4657062 to your computer and use it in GitHub Desktop.
Script for resetting the bridge connection for VirtualBox virtual machines after putting the laptop to sleep
@echo off
Rem Reset the bridge connection for Virtual Box virtual hosts.
Rem Connection is often lost when the host machine is put to sleep.
netsh interface set interface name="VirtualBox Host-Only Network" admin=disabled
netsh interface set interface name="VirtualBox Host-Only Network" admin=enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment