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.
Launch PowerShell as an Administrator
Type
powershell
and press EnterIf an error occurs, there is an issue with the PowerShell PATH:
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
Ā