mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-02-21 00:42:33 -05:00
6 lines
317 B
PowerShell
6 lines
317 B
PowerShell
# 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)}
|