KB0040 - PSScriptAnalyzer module is not installed

KB0040 - PSScriptAnalyzer module is not installed

Problem

In the PowerShell Universal health check you see a warning: 
PSScriptAnalyzer module is not installed. You will have limited features in the editor.

(figure shows the health check entry for PSScriptAnalyzer before the module has been installed)

Cause

This is expected behavior. The PSScriptAnalyzer module must be installed within PowerShell Universal integrated environment to clear this warning.

Impact

  1. You will not have advanced editing features in the script editor
  2. The health check will throw this warning.

Resolution

Use the Modules feature of PowerShell Universal to download PSScriptAnalyzer from the PowerShell Gallery as per below


(figure shows the Modules feature of PowerShell Universal with the PSScriptAnalyzer module selected from the PowerShell Gallery)


(figure shows the health check entry for PSScriptAnalyzer after the module has been installed)

Further Reading


    • Related Articles

    • KB - 1008 Tax/VAT Exempt at checkout

      Scope In this article you will learn how to make a tax-free purchase at checkout. Problem How do you remove the Tax/VAT on an order? Impact Orders will then need to be refunded for tax if processed without the tax deducted. Resolution Follow the ...
    • Jobs not returning correctly from Get-PSUJob

      Version: 1.5 Issue: When running Get-PSUJob and passing in a script returned from Get-PSUScript, jobs may not be returned correctly.  Get-PSUScript -Name 'Script.ps1' | Get-PSUJob  Root Cause: If the Universal 1.4 PowerShell module is installed, and ...
    • KB0056 - App Pages Are Missing After Service Restart

      Affected Versions - PowerShell Universal 4.0.0 through 4.2.5 Problem When restarting the PowerShell Universal service, pages that were defined in Apps are no longer displayed in the admin console. The apps are still functional, but they cannot be ...
    • KB0063 - API, App or Job Not Starting

      Problem External processes do not start after upgrades or with the same configuration and script on different machines. Common errors in the log will include: [ERR] Dashboard process running but not response after 10 seconds. Terminating process. ...
    • KB0035 - How to add the Calendar and other components

      Purpose The purpose of this article is to demonstrate how to install and use the Calendar component (module) Background There is a growing list of add-on components (modules) for PowerShell Universal at ...