Tuesday, 23 September 2014

PowerShell: How do I remove a module by force?

I recently added a module to my PowerShell  version and things (to put it mildly) did not go well.

I tried using Remove-Module but that also failed. I ended by bypassing tact and using a sledgehammer.

I navigated to My Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
and removed the module entry manually.

No comments:

Post a comment