Hello there,
The issue may occur if the remote registry service is not started or system has does not have sufficient permissions:
Suggest you to:
1. Ensure that Remote Registry Service is started and set to start automatically.
2. SYSTEM account has Full Control of the software registry key.
3. SYSTEM account has Full Control of the software registry key.
Let us know if this helps.