怎么用vbs列出注册表中Run项中的所有项目-创新互联
这篇文章主要讲解了“怎么用vbs列出注册表中Run项中的所有项目”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“怎么用vbs列出注册表中Run项中的所有项目”吧!

复制代码 代码如下:
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感谢各位的阅读,以上就是“怎么用vbs列出注册表中Run项中的所有项目”的内容了,经过本文的学习后,相信大家对怎么用vbs列出注册表中Run项中的所有项目这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是创新互联网站建设公司,,小编将为大家推送更多相关知识点的文章,欢迎关注!
文章标题:怎么用vbs列出注册表中Run项中的所有项目-创新互联
网页地址:http://jxruijie.cn/article/hdjdc.html
