Score:0

I have been trying to update my SSM agent. I'm running the command AWS updatessmagent

cn flag

I have been trying to update my SSM agent. I'm running the command AWS updatessmagent. This is what I am getting.

PS C:\Windows\Temp> AWS-UpdateSSMAgent

AWS-UpdateSSMAgent : The term 'AWS-UpdateSSMAgent' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:1

AWS-UpdateSSMAgent
~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (AWS-UpdateSSMAgent:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

can anyone help.

Tim avatar
gp flag
Tim
I have edited your post to format it so it's legible. Previously it was very difficult to follow. Formatting instructions are available when you create a question.
Score:1
gp flag
Tim

According to AWS documentation for Windows, manual updates to SSM agent are done manually. It looks like the powershell commands are

Invoke-WebRequest `
  https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/windows_amd64/AmazonSSMAgentSetup.exe `
-OutFile $env:USERPROFILE\Desktop\SSMAgent_latest.exe

Start-Process `
  -FilePath $env:USERPROFILE\Desktop\SSMAgent_latest.exe `
  -ArgumentList "/S"

rm -Force $env:USERPROFILE\Desktop\SSMAgent_latest.exe

You can also set up automatic SSM agent updates as described here.

I suspect the command you ran was for Linux.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.