Seach Registry Using Batch File

Example for searching Citrix Receiver install GUIDs and outputting to a text file.

del guids.txt

:: If txt file exists. We want a fresh one to hold the guids.

FOR /F “skip=2 tokens=2,*” %%A IN (‘reg.exe query “HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Citrix\PluginPackages\XenAppSuite” /s /v “ProductCode”‘) DO echo %%B>>guids.txt

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.