reg compare help

  • Thread starter Thread starter sudosunator
  • Start date Start date
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?
 
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?
|
 
"Quote the full paths"

Using a pair of quotes for each full path works!

I am humbly grateful.
 
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.
 
Back
Top