samiam41
asked on
parse information from reg query command
Hey Experts. When I run "reg query" on a remote pc from a batch script, I get so much information that I don't need in my log file.
How do I code the script so that the information I don't need is parsed out? Such as, if I wanted only a couple of entries listed instead of lines of information.
C:\Windows\system32\comcat .dll REG_DWORD 0x3
C:\Windows\system32\comdlg 32.ocx REG_DWORD 0x2
Thanks for your help
HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\shareddlls
C:\Windows\system32\vfpodbc.dll REG_DWORD 0x1
C:\Windows\system32\FM20ENU.DLL REG_DWORD 0x2
C:\Program Files\Common Files\Microsoft Shared\INK\INKDIV.DLL REG_DWORD 0x2
C:\Program Files\Common Files\Microsoft Shared\Ink\rtscom.dll REG_DWORD 0x2
C:\Program Files\Adobe\Reader 10.0\Resource\TypeSupport\Unicode\Mappings\win\CP1252.TXT REG_DWORD 0x1
C:\Program Files\Adobe\Reader 10.0\Resource\TypeSupport\Unicode\Mappings\win\CP1258.TXT REG_DWORD 0x1
C:\Program Files\Adobe\Reader 10.0\Resource\TypeSupport\Unicode\Mappings\win\CP1257.TXT REG_DWORD 0x1
C:\Program Files\Adobe\Reader 10.0\Resource\TypeSupport\Unicode\Mappings\win\CP1254.TXT REG_DWORD 0x1
C:\Program Files\Adobe\Reader 10.0\Resource\TypeSupport\Unicode\Mappings\win\CP1253.TXT REG_DWORD 0x1
C:\Program Files\Adobe\Reader 10.0\Resource\TypeSupport\Unicode\Mappings\win\CP1251.TXT REG_DWORD 0x1
C:\Program Files\Adobe\Reader 10.0\Resource\TypeSupport\Unicode\Mappings\win\CP1250.TXT REG_DWORD 0x1
C:\Program Files\Adobe\Reader 10.0\Resource\TypeSupport\Unicode\Mappings\Mac\SYMBOL.TXT REG_DWORD 0x1
C:\Program Files\Adobe\Reader 10.0\Resource\TypeSupport\Unicode\Mappings\Adobe\zdingbat.txt REG_DWORD 0x1
C:\Program Files\Adobe\Reader 10.0\Resource\TypeSupport\Unicode\Mappings\Adobe\symbol.txt REG_DWORD 0x1
C:\Program Files\Adobe\Reader 10.0\Resource\TypeSupport\Unicode\Mappings\Mac\ROMAN.TXT REG_DWORD 0x1
C:\Program Files\Adobe\Reader 10.0\Resource\TypeSupport\Unicode\Mappings\Mac\CORPCHAR.TXT REG_DWORD 0x1
How do I code the script so that the information I don't need is parsed out? Such as, if I wanted only a couple of entries listed instead of lines of information.
C:\Windows\system32\comcat
C:\Windows\system32\comdlg
Thanks for your help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
oBdA, please let me know if you can help me with this:
https://www.experts-exchange.com/questions/28576573/search-directory-on-remote-pc-and-output-if-file-is-found.html
https://www.experts-exchange.com/questions/28576573/search-directory-on-remote-pc-and-output-if-file-is-found.html
ASKER
Thanks!