Created
April 22, 2020 10:07
-
-
Save emnavarro02/0b22e7d8562a5206638a74f9e63dd47c to your computer and use it in GitHub Desktop.
Upgrade AWS SSM Agent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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