What is PowerShell Cache?

Read more
by PowerShell

Overview

PowerShell Cache is published by PowerShell. You can find out more about PowerShell Cache at its official website or at PowerShell's website.

Users on average believe that PowerShell Cache's quality is very poor. Most users give it a rating of one star.


How do I clean PowerShell Cache?

PowerShell Cache may store excess, temporary data on your computer that can take up valuable space. It may also store private data such as passwords or browsing history in the registry or on the file system. The easiest way to erase this data is by downloading AppCleaner, it is 100% free and about 1MB in size. A portable version is also available.

Clean PowerShell Cache
with AppCleaner

If you want to clean PowerShell Cache manually, you can follow the steps outlined below. There is one location in the file system where PowerShell Cache stores data that can be cleaned.

Files

To clean your file system from files stored by PowerShell Cache and to gain free disk space, examine the following file system location. First of all, open a command prompt window:

  • Hit the Windows key , usually located in the lower left of your keyboard between the Ctrl and Alt keys.
  • Windows XP/Vista/7: Click Run...
  • Type cmd
  • Hit Enter

Now list all the files stored by PowerShell Cache that can be cleaned:

  1. Type dir /s %LOCALAPPDATA%\Microsoft\Windows\PowerShell\CommandAnalysis\*
    • Windows XP: Type dir /s %USERPROFILE%\Local Settings\Application Data\Microsoft\Windows\PowerShell\CommandAnalysis\*

Once you have identified the files stored by PowerShell Cache that you want to clean, delete them using the del command or Windows Explorer.

1 Comment


  • Scripting guy :P

    Scripting guy :P 8 years ago

    just do this -> del /f /s /q /a "%LocalAppData%\Microsoft\Windows\PowerShell\CommandAnalysis\*.*" <- and done!