找回密码
 加入
搜索
查看: 4464|回复: 1

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

[复制链接]
发表于 2012-9-16 09:27:30 | 显示全部楼层 |阅读模式
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
发表于 2012-9-16 11:25:31 | 显示全部楼层
就是写注册表信息啊,在网络适配器那个CLASS那加上所需信息,CLASSID貌似跟系统不同有些出入,自己参照下已有的适配器注册信息,要写出这个不难的
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-12 04:22 , Processed in 0.076379 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表