CIS-CAT Pro Assessor Error: "Cannot execute PowerShell"


Product Name

CIS-CAT Pro Assessor v4

Product Version

v4.0.0+

Date

Apr 24, 2024



Ā 

Problem

When launching a Windows assessment a null@null error occurs. The assessor-cli.log says Cannot execute PowerShell. Please make sure that it is installed in your system.

Ā 

Solution

Install PowerShell if it is not installed. If PowerShell is already installed, there is likely an issue with the PowerShell PATH.

  1. Launch PowerShell as an Administrator

  2. Type powershell and press Enter

  3. If an error occurs, there is an issue with the PowerShell PATH:

    image001 (cc2ae852-edd7-4838-9afd-913efc865648).png

  4. Run the following PowerShell command to set the PowerShell PATH:

    $sys_path = "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\" Set-ItemProperty -Path $sys_path -Name Path -Type String -Value $((Get-ItemProperty -Path $sys_path -Name Path).Path + ';C:\Windows\System32\WindowsPowerShell\v1.0')

Assessments for CIS Benchmark recommendations referring to PowerShell transcription states require PowerShell v5.1+.

Ā 

Keywords; PowerShell

Content by Label


Copyright Ā© 2024

Center for Internet SecurityĀ®


Ā