How to uninstall Powershell Cmdlets

I was looking at Microsoft documentation on how to register custom Cmdlets to install one of my Cmdlets. I realized that I made some mistake in the implementation. So I had to uninstall Cmdlet from shell. You will follow the same instructions from documentation with one change. You can specify /u parameter to InstallUtil to uninstall the assembly. So the command will look following:

PS> set-alias installutil $env:windir\Microsoft.NET\Framework\v2.0.50727\installutil
PS> installutil /u SelectStrCommandSample.dll
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.

The uninstall has completed.




20.5 °C / 68.9 °F

weather conditions Clouds

Monthly Posts

Blog Tags