const HKEY_LOCAL_MACHINE = &H80000002 dim k strComputer = "." Set StdOut = WScript.StdOut Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\" & strComputer & " ootdefault:StdRegProv") strKeyPath = "SoftwareMicrosoftWindowsCurrentVersionRun" oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys For Each subkey In arrSubKeys k=k & vbcr & subkey Next wscript.echo k
欢迎加入QQ技术群聊:70539804