IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

Carbon Black Cloud: Remote Error 0x80070002 When Using Reg Commands With Live Response

Carbon Black Cloud: Remote Error 0x80070002 When Using Reg Commands With Live Response

Environment

  • Carbon Black Cloud Windows Sensor: All Supported Versions
  • Windows OS: All Supported Versions

Symptoms

Remote error 0x80070002 - The system cannot find the file specified. When trying to use Reg Commands like reg query

Cause

This can happen if the requested registry key doesn't exist or when not surrounding a registry path that contains spaces with ""

Resolution

  • Run reg query PARENTPATH\ to display all existing registry keys to confirm the requested registry key exists
  • Any registry path that contains spaces must have quotes around it
Live Response for device 59289986
[59289986] C:\Windows\system32> reg query -v HKLM

Remote error  0x80070002 - The system cannot find the file specified.

[59289986] C:\Windows\system32> reg query HKLM
Subkeys:
   BCD00000000
   HARDWARE
   SAM
   SECURITY
   SOFTWARE
   SYSTEM
[59289986] C:\Windows\system32>

 

Additional Notes

reg query HKLM\System\ will show all the registry keys that exist in System
the "reg -v" option can only be used with keys, not their parent hive/folder names alone

Related Content


Was this article helpful? Yes No
0% helpful (0/1)
Article Information
Author:
Creation Date:
‎10-01-2020
Views:
2399
Contributors