开发者

Need a VBscript to reset wifi on my Vista PC

Need a VBscript t开发者_运维问答o reset wifi on my Vista PC


Look at the Win32_NetworkAdapter class. Unfortunately the Reset function in there is not implemented but there are Disable and Enable methods and I'd assume that you'd achieve the same effect as a reset if you first disable it and then enable it again.

There's some sample vbscript code in the link for the Enable method. You should hopefully be able to distinguish the wifi adapter on your machine by looking at the various properties of the Win32_NetworkAdapter class. However, be aware that I think some wifi adapters will lie about what AdapterType they are, so you might have to look at other properties than just that one.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜