Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to uninstall all powershell modules

workflow Uninstall-AzureModules
{
    $Modules = @()
    $Modules += (Get-Module -ListAvailable Azure*).Name
    $Modules += (Get-Module -ListAvailable Az.*).Name
    Foreach -parallel ($Module in ($Modules | Get-Unique))
    { 
        Write-Output ("Uninstalling: $Module")
        Uninstall-Module $Module -Force
    }
}
Uninstall-AzureModules
Uninstall-AzureModules   #second invocation to truly remove everything
Comment

PREVIOUS NEXT
Code Example
Shell :: whoami linux 
Shell :: bash rename file 
Shell :: docker basic commands 
Shell :: rsync with ssh key 
Shell :: git tag delete 
Shell :: powershell writeline 
Shell :: install node on ubuntu 
Shell :: rename file in git 
Shell :: git alias list 
Shell :: minikube start with docker driver 
Shell :: iptable port forward 
Shell :: erlang clear shell 
Shell :: tcpdump tcp ipaddress 
Shell :: slow internet wifi speed on ubuntu 18.04 
Shell :: how to install ssh server on ubuntu 16.04 
Shell :: turn off screen linux 
Shell :: bitbucket change commit message 
Shell :: linux ip addr add 
Shell :: volume buttons not working ubuntu 18.04 
Shell :: git push specific ssh key 
Shell :: install drush ubuntu 20.04 
Shell :: / bin/sh: 1: bc: not found 
Shell :: search in apt-get 
Shell :: git abort changes 
Shell :: specific branch clone git 
Shell :: gatsby-plugin-react-helmet npm 
Shell :: uninstall node 
Shell :: configure git diff tool vscode 
Shell :: Go install /linux 
Shell :: bash delete swap file 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =