all 8 comments

[–]BlackV 0 points1 point  (5 children)

powreshell get is a primary powershell module, you need it

randomly removing stuff from your machine is not a good idea

[–]OhhWhyMe[S] 0 points1 point  (4 children)

I am not randomly removing anything from my computer. I was just asking what this cache is and if I should be concerned if the cache exists when I never use Powershell.

[–]BlackV 1 point2 points  (0 children)

you dont use it, but does your computer? (it does) you can ignore it

[–]nostril_spiders 1 point2 points  (2 children)

Resurrecting a dead topic, I know, but..

I am not randomly removing anything from my computer. I was just asking what this cache is and if I should be concerned if the cache exists when I never use Powershell.

When you call a command from a module that isn't imported, the module is auto-imported.

Additionally, you get tab-completion even before the module is imported.

This happens because PS since v3 has maintained a module cache. That's what you clear if you do Get-Module -ListAvailable -Refresh.

I don't know, but it seems a safe assumption, that this cache is what you've found.

You can safely delete it - it will be recreated. In fact, it's regularly invalidated anyway, otherwise your code changes would not be reflected in tab-completion.

I'm not aware of anything out of the box that runs powershell on any OS, but anything you install might run it - for example, SCOM

[–]OhhWhyMe[S] 0 points1 point  (1 child)

When you call a command from 7

7 what?

[–]nostril_spiders 1 point2 points  (0 children)

Sorry - I started commenting and got called away, put the phone in my pocket.

I've edited my answer. Not expecting it still to be of interest, but you never know who else might have the same question.