Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Read a MultiString ValueContent of Read a MultiString Value.vbsMD5 Hash: 2EAF9FEC04BA57DDF6FE67EB8D4750D0 |
||
' Description: Uses WMI to read a multi-string registry value.
Const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _ strComputer & "\root\default:StdRegProv") strKeyPath = "SYSTEM\CurrentControlSet\Services\Eventlog\System" strValueName = "Sources" oReg.GetMultiStringValue HKEY_LOCAL_MACHINE,strKeyPath, _ strValueName,arrValues For Each strValue In arrValues Wscript.Echo strValue Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |