Powershell – Determine version of AWS tools using only powershell

amazon-web-servicespowershell

Using powershell (no gui) how can I find out which version of AWS Tools for Windows PowerShell I'm using?

more:

I'm using powershell remoting and AWS Tools for Windows PowerShell to download a file from S3. I'm having trouble setting credentials, this aws powershell reference states that:

In versions of the Tools for Windows PowerShell that are older than 1.1, the Set-AWSCredentials command did not work correctly

But I don't know what version of AWS tools I'm using. There doesn't seem to be an obvious command to try, for example, the Read-S3Object command -Version parameter is used to determine the version of the S3 object being downloaded, not the version of the AWS tools.

It's possible I could figure it out by using RDP and the add/remove programs gui, but that's a different question, this server is suposed to be administered using powershell remoting only.

Best Answer

You can inspect the module via Get-Module.

Get-Module -ListAvailable -Name AWSPowerShell

    Directory: C:\Program Files (x86)\AWS Tools\PowerShell

  ModuleType Version    Name            ExportedCommands
  ---------- -------    ----            ----------------
  Binary     3.1.75.0   AWSPowerShell   {Clear-AWSHistory, Set-AWSHistoryConfiguration....
Related Topic