Created
July 12, 2021 20:17
-
-
Save firestar/f76b26005494e10fafd7cc652a818203 to your computer and use it in GitHub Desktop.
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
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 | |
// GO TO https://us-west-1.console.aws.amazon.com/systems-manager/quick-setup/?region=us-west-1 | |
// IF existing quick setup exists, select it and click "view details", at top right click "actions" and then click "Edit configuration options" | |
// IF its done by tag, ( add tag to instance ) | |
// IF its done by resource group ( add instance to group ) | |
// IF its done by manual selection, select the instance and click update. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment