Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use vbs to list all the items in the Run key in the registry

Shulou Source: shulou.com Published: 2022-06-03 16:31:43 11月14日 Update

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!

Tags: Registry project 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 MariaDB OPPO Reno Shulou Tech Info Linux Docker