Sha256: 2dbc545c6ff816d8a19123f98fa8320bc7ffe8bf0bb69dd50677a05762f53325

Contents?: true

Size: 317 Bytes

Versions: 64

Compression:

Stored size: 317 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

64 entries across 57 versions & 8 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/guests/windows/scripts/set_work_network.ps1
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.3.3.0 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.3.2.0 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.19.0 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.18.0 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.16.0 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.14.0 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.10.0 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.9.0 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.8.0 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.7.0 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.6.2 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.6.1 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.6.0 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.5.0 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.4.0 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.3.0 plugins/guests/windows/scripts/set_work_network.ps1
vagrant-unbundled-2.2.2.0 plugins/guests/windows/scripts/set_work_network.ps1