Uninstall AWS-CLI using powershell script

powershell-user1233 21 Reputation points
2022-03-26T00:05:42.873+00:00

I am running Azure pipeline on a vm which has AWS-CLI v1 installed. How can uninstall AWS CLI v1 using powershell to that I can download and install AWS CLI v2?
Is uninstalling it manually through control panel the only way to do so?

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. Limitless Technology 39,916 Reputation points
    2022-03-29T14:12:06.697+00:00

    Hi @powershell-user1233

    AWS CLI is a software from Amazon Web Services which is a 3rd Party software to Azure. It would be recommended that you get in touch with Amazon Web Services forums or communities in order to get more experienced and expert responses.

    Initially it should not be very complex:

    1-Open Programs and Features by doing one of the following:

    Open the Control Panel, and then choose Programs and Features.

    Open a command prompt and enter the following command.

    C:\> appwiz.cpl

    2- Select the entry named AWS Command Line Interface, and then choose Uninstall to launch the uninstaller.

    3- Confirm that you want to uninstall the AWS CLI.

    4- (Optional) Remove the shared AWS SDK and AWS CLI settings information in the .aws folder.

    Hope this helps with your query,

    --
    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.