Sudip
Sudip

Reputation: 687

Unable to get AWS powershell comands working in Windows-10

I want to run some AWS commands using PowerShell scripts in windows. I went ahead and ran this below command.

Install-Module AWSPowerShell

The module got installed without any error. But I'm getting below error when I try to do "Set-AWSCredentials" enter image description here

Can anyone please help me understand what I'm doing wrong here?

Upvotes: 1

Views: 4837

Answers (2)

Gabriel
Gabriel

Reputation: 1

adding -Force solved it for me where "Import-Module AWSPowerShell" still showed no effect. Import-Module AWSPowerShell -Force

Upvotes: 0

xavier
xavier

Reputation: 123

I think you should try to import the module installed. Almost you can use the following command Get-Module to check if the module is imported and installed in the current session of powershell execution.

Import-Module AWSPowerShell

Get-Module -ListAvailable

Upvotes: 0

Related Questions