Skip to content

Instantly share code, notes, and snippets.

View johnrey1's full-sized avatar

John Reynolds johnrey1

View GitHub Profile
@johnrey1
johnrey1 / gist:8344393
Last active April 25, 2018 00:20
powershell script to grant myself basic access to all security groups in my AWS instance
#begin work C:\users\[YOURNAME]\desktop\awssecgroup.ps1 -rdp -mssql -setAws -accessKey "" -secretKey "" -region "us-west-1"
#end work C:\users\[YOURNAME]\desktop\awssecgroup.ps1 -revoke -rdp -mssql -setAws -accessKey "" -secretKey "" -region "us-west-1"
param(
[switch]$rdp,
[switch]$mssql,
[switch]$mysql,
[switch]$ssh,
[switch]$all,
[switch]$revoke,