reg compare help

S

sudosunator

Greetings Programs!

I've been tasked with comparing registry values of a specific list of
distributed computers.
Since the list is not too long I began experimenting with "reg compare"
in the hopes of incorporating it into a batch file.

Here's my one line test (imagine it on one line anyway):

C:\REG COMPARE
\\CCT2ISDE00\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
Settings\Zones
\\CCT2ISDE01\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
Settings\Zones /OD /S

The snag I'm encountering is the error:

Error: Invalid key name

The Invalid key name is "Internet Settings". The command produces the
desired output on everything prior to that subkey, but once "Internet
Settings" is incorporated the error is generated.

I've attempted many variants but all produce an one error or another
the output of which leads me to suspect the two word key isn't valid in
the command.

My questions to the community are whether or not a valid abbreviation
of the full key exists and if one does exist what is it?
 
D

Dave Patrick

Quote the full paths as in;

REG COMPARE
"\\CCT2ISDE00\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
Settings\Zones"
"\\CCT2ISDE01\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
Settings\Zones" /OD /S

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

| Greetings Programs!
|
| I've been tasked with comparing registry values of a specific list of
| distributed computers.
| Since the list is not too long I began experimenting with "reg compare"
| in the hopes of incorporating it into a batch file.
|
| Here's my one line test (imagine it on one line anyway):
|
| C:\REG COMPARE
| \\CCT2ISDE00\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
| Settings\Zones
| \\CCT2ISDE01\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet
| Settings\Zones /OD /S
|
| The snag I'm encountering is the error:
|
| Error: Invalid key name
|
| The Invalid key name is "Internet Settings". The command produces the
| desired output on everything prior to that subkey, but once "Internet
| Settings" is incorporated the error is generated.
|
| I've attempted many variants but all produce an one error or another
| the output of which leads me to suspect the two word key isn't valid in
| the command.
|
| My questions to the community are whether or not a valid abbreviation
| of the full key exists and if one does exist what is it?
|
 
S

sudo sue

"Quote the full paths"

Using a pair of quotes for each full path works!

I am humbly grateful.
 
D

Dave Patrick

You're welcome.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| "Quote the full paths"
|
| Using a pair of quotes for each full path works!
|
| I am humbly grateful.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top