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.



Comments

Popular posts from this blog

SharePoint 2013: Error updating managed account credentials

Error deploying Nintex workflow: An item with the same key has already been added