POWERSHELL_REG_FAILURE: Could not determine powershell location in the registry

Objective

  • Resolve the error “POWERSHELL_REG_FAILURE: Could not determine powershell location in the registry” when running a compliance scan on Windows

How to

  • Verify if the remote registry is enabled (manual or automatic) on the scan target.
  • Verify if the “start remote registry” setting in the scan policy is enabled.

Powershell

Query if remote registry service is enabled

Get-Service "remoteregistry"| select displayname, status, starttype

 

Set it correctly

Set-Service -name "remoteregistry" -startuptype automatic -status running

 

Note

On Windows 10 the remote registry service is disabled by default.