pencilCake
pencilCake

Reputation: 53263

How can I remove all imported modules in PowerShell?

I wan to remove all imported modules before importing them so that I can get the fresh ones by overwriting the ones in the memory.

How can I remove all imported modules in PowerShell?

Thanks

Upvotes: 9

Views: 14387

Answers (1)

CB.
CB.

Reputation: 60938

this should do it:

get-module | Remove-Module

this remove also imported modules in $profile.

More about this

Upvotes: 13

Related Questions