How to use vbs to determine whether a computer has a USB 2.0 port
This article mainly explains "how to use vbs to determine whether a computer has a USB 2.0 port". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to use vbs to determine whether a computer has a USB 2.0 port".
The copy code is as follows:
StrComputer = "." I = 0 Set objWMIService = GetObject ("winmgmts:\\" & strComputer & "\ root\ cimv2") Set colControllers = objWMIService.ExecQuery _ ("Select * From Win32_USBController") For Each objController in colControllers If Instr (objController.Name, "Enhanced") Then I = I + 1 End If Next Wscript.Echo "No. Of USB 2.0Ports: "& I Thank you for reading, the above is the content of" how to use vbs to determine whether a computer has a USB 2.0 port ". After the study of this article, I believe you have a deeper understanding of how to use vbs to determine whether a computer has a USB 2.0 port, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!