Vmware Workstation Public Profile Fix
vmware
windows
Here is a simple Powershell script that will set stop windows from seeing the VMware network virtual network cards as unknown network connections.
This causes problems when you try to enable something that refuses to work on a public network. Powershell remoting is a good example.
$Key = "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e972-e325-11ce-bfc1-08002be10318}"
foreach($subkey in Get-ChildItem -Path $key -ErrorAction SilentlyContinue) {
if($subkey.GetValue("VMNet") -eq `
"\DosDevices\VMnet1" -or `
$subkey.GetValue("VMNet") -eq `
"\DosDevices\VMnet8"){
New-ItemProperty -Path $subkey.PSPath `
-Name *NdisDeviceType `
-Value 1 `
-PropertyType DWord `
-Force
}
}