How to use vbs to list all the items in the Run key in the registry
This article mainly explains "how to use vbs to list all the items in the Run key in the registry". 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 list all the items in the Run key in the registry".
The copy code is as follows:
StrComputer = "." Set objWMIService = GetObject ("winmgmts:\\" & strComputer & "\ root\ cimv2") Set colStartupCommands = objWMIService.ExecQuery _ ("Select * from Win32_StartupCommand") For Each objStartupCommand in colStartupCommands Wscript.Echo "Command:" & objStartupCommand.Command Wscript.Echo "Description:" & objStartupCommand.Description Wscript.Echo "Location:" & objStartupCommand.Location Wscript.Echo "Name:" & objStartupCommand.Name Wscript.Echo "User:" & objStartupCommand.User Wscript.Echo Next Thank you for your reading The above is the content of "how to use vbs to list all the items in the Run key in the registry". After the study of this article, I believe you have a deeper understanding of how to use vbs to list all the items in the Run entry in the registry, 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!