Giter VIP home page Giter VIP logo

mcbot's Introduction

##Windows AWS RDP Connections

####Back Story My my new role I found that I often have several RDP connections open to any number of environments at any given time. I wanted to try and simplify this process. As well as give me less reasons to open up AWS console.

###Prep Work There is one small part that I've not found a great solution to just yet, but it's setting up the RDP conncetions.

On line 201 I currently have a directory which will need to be changed and setup for yourself. At the moment I point it to a directory where I have RDP files which contain the username and password for the required environment.

You will need to make sure that you've got your RDP files setup as you'd expect as well as making sure you have a username and password in there. We populate the location and port within line 201 so this shouldn't need to be changed.

Ensure that you've got everything setup for AWS System Manager as well.

###How to run You can run this tool in several ways:

 Load it into your faviourte terminal (Obvioulsy Windows Terminal)
    . .\RDPConnection.ps1

 Run it from your editor such as VSCode

 I prefer to make it a part of my Windows Terminal Profile so it's always accessible. 

Once you've loaded the code into your terminal then we can start with the following command:

Start-AWS || SAWS (as the alias to Start-AWS, I just wanted to make it a little faster to access as well as keeping the naming convention of PowerShell).

SAWS -AWSProfile ProfileName -SearchTerm SERVERName

This will then go and fetch back all the servers within that AWSProfile as well as limit it to what you've searched for.

Once the list has been returned you'll be able to quickly glance and see the servers which are online or offline.

You can then put in the number to the server you wish to connect to. It will then attempt to launch the RPD connection to that server.

mcbot's People

Contributors

divideddarko avatar inipatrick avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.