Skip to content

Instantly share code, notes, and snippets.

@emnavarro02
Created April 22, 2020 10:07
Show Gist options
  • Save emnavarro02/0b22e7d8562a5206638a74f9e63dd47c to your computer and use it in GitHub Desktop.
Save emnavarro02/0b22e7d8562a5206638a74f9e63dd47c to your computer and use it in GitHub Desktop.
Upgrade AWS SSM Agent
# https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-install-win.html
# Requires Administrator Privileges
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
Restart-Service AmazonSSMAgent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment