Query all subkeys and value names recursively from the command-line

0

From reading Microsoft's documentation, I can't understand why the following command doesn't work:

reg query HKLM\SYSTEM\CurrentControlSet\Services /s /v ImagePath

What I'm trying to do, is query all values ImagePath recursively. I'm getting Invalid command line parameters.

user2018084

Posted 2017-03-11T22:56:28.573

Reputation: 1 604

No repro on Windows 7 Home Premium 64 bit. End of search: 473 match(es) found. – DavidPostill – 2017-03-11T23:40:54.213

What version of Windows? – I say Reinstate Monica – 2017-03-12T04:02:03.283

Maybe Powershell: http://www.computerperformance.co.uk/powershell/powershell_itemproperty_gci.htm

– HelpingHand – 2017-03-12T10:01:12.523

@Twisty Testing on old XP (purposely old). It looks like you can either query value or recursive on XP, but not both. – user2018084 – 2017-03-12T10:20:34.697

No answers