Sha256: a97300c10b89a1abe22dd4f2733fa345782e844a96223d9c947ef5b2d4e50ab8

Contents?: true

Size: 315 Bytes

Versions: 24

Compression:

Stored size: 315 Bytes

Contents

# Get network connections 
$networkListManager = [Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]"{DCB00C01-570F-4A9B-8D69-199FDBA5723B}")) 
$connections = $networkListManager.GetNetworkConnections() 

# Set network location to Private for all networks 
$connections | % {$_.GetNetwork().SetCategory(1)}

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
vagrant-windows-1.7.0.pre.2 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-windows-1.7.0.pre.1 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-windows-1.6.0 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-plugin-dummy-0.0.7 windows/scripts/set_work_network.ps1
vagrant-windows-1.6.0.pre.1 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-plugin-dummy-0.0.6 windows/scripts/set_work_network.ps1
vagrant-plugin-dummy-0.0.5 windows/scripts/set_work_network.ps1
vagrant-windows-1.5.1 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-windows-1.5.0 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-windows-1.4.0 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-windows-1.3.2 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-windows-1.3.1 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-windows-1.3.0 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-windows-1.3.0.pre.3 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-windows-1.3.0.pre.2 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-windows-1.3.0.pre.1 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-windows-1.2.3 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-windows-1.2.2 lib/vagrant-windows/scripts/set_work_network.ps1
vagrant-plugin-dummy-0.0.4 windows/scripts/set_work_network.ps1
vagrant-plugin-dummy-0.0.3 windows/scripts/set_work_network.ps1