Removing PowerShell Module: Posh Git

A while back I installed Posh Git, a module for PowerShell that incorporates some git information into the shell if you’re within a git repository. This is a welcome addition, although it brings the initialisation time of PowerShell down to a grinding halt. 11+ seconds to load up the shell is not acceptable.

PowerShell Module file

PowerShell has a list of installed modules located in a .ps1 file within the following path. %USERPROFILE%\Documents\WindowsPowerShell

To remove a PowerShell module, open the profile Microsoft.PowerShell_profile.ps1 in Windows PowerShell ISE (this will be the default editor) and delete the offending line.

Full path:


Now welcome PowerShell back as a usable shell!

Richard Ballard

Richard Ballard

Read more posts by this author.

Read More