Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use vbs to determine whether a computer has a USB 2.0 port

Shulou Source: shulou.com Published: 2022-06-03 19:38:20 11月12日 Update

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!

Tags: Port computer learning code content that is ideas situations articles more knowledge knowledge points articles follow questions practice push research verification Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info macOS MariaDB MySQL NVidia