在 Windows XP-7 中禁用蓝牙支持
我正在尝试编写一个程序来禁用计算机上的蓝牙服务(因此,禁止用户通过蓝牙连接到互联网)
我尝试了以下方法:
- 禁用“bthserv”服务(蓝牙支持服务)。它可以在Windows Vista和7上运行,但在Windows XP中没有这样的服务(我没有测试过,但我认为它只适用于Microsoft Bluetooth Stack)
- 使用Devcon.exe工具;它显示蓝牙设备,但无法禁用它们(我是管理员)
- 我可以通过 WMI 列出设备,但如何禁用它们? (我想使用 netsh.exe 禁用,但它出现错误“具有此名称的接口未在路由器中注册。”尽管连接存在。
有什么想法吗?
I'm trying to write a program to disable the Bluetooth service on computers (so, forbid users from connecting to Internet via Bluetooth)
I've tried following methods:
- Disable the "bthserv" service (Bluetooth Support Service). It works on Windows Vista and 7, but there is no such service in Windows XP (I haven't tested, but I think it only works with Microsoft Bluetooth Stack)
- Use Devcon.exe tool; it shows Bluetooth devices, but cannot disable them (I'm Administrator)
- I can list the devices via WMI, but how can I disable them? (I wanted to disable with netsh.exe, but it errors with "An interface with this name is not registered with the router." although the connection exists.
Any ideas ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在寻找的 API 称为“Setup API”。顺便说一句,我严重怀疑这就是你想要的。蓝牙网络与 Wifi 网络有何特别之处?为什么不禁止添加任何新的网络适配器?
The API you're looking for is called the "Setup API". I seriously doubt that it's what you want, BTW. What is so special about Bluetooth networking that sets it apart from Wifi networking? Why don't you just ban adding any new network adaptor ?