lon91ong 发表于 2012-9-16 09:27:30

VirtualBox虚拟网络显示"未识别"的解决办法,请大侠做个AU3版本

powershell 代码:
# tell windows that VirtualBox Host-Only Network Adapter
# is not a true network interface that connects to a network
# see http://msdn.microsoft.com/en-us/library/ff557037(VS.85).aspx
pushd
echo 'Marking VirtualBox Host-Only Network Adapter as a virtual device.'
cd 'HKLM:\system\CurrentControlSet\control\class\{4D36E972-E325-11CE-BFC1-08002BE10318}'
ls ???? | where { ($_ | get-itemproperty -name driverdesc).driverdesc `
-eq 'VirtualBox Host-Only Ethernet Adapter' } |`
new-itemproperty -name '*NdisDeviceType' -PropertyType dword -value 1
echo 'After you reboot the VirtualBox Host-Only Network unidentified public network should be gone.'
popd

liongodmien 发表于 2012-9-16 11:25:31

就是写注册表信息啊,在网络适配器那个CLASS那加上所需信息,CLASSID貌似跟系统不同有些出入,自己参照下已有的适配器注册信息,要写出这个不难的
页: [1]
查看完整版本: VirtualBox虚拟网络显示"未识别"的解决办法,请大侠做个AU3版本