Uncategorized

This script was created by my brother Scott Prudence and I, this snapshot’s 1 specific volume then once the snapshot is completed the script then removes the oldest snapshot. This is a way of implementing a weekly snapshot of a single volume within AWS.   NOTE – Change the VOLUMEID variable from vol-xxxxxx to your volume ID […]

Read More

This script is designed to run line by line of a text file containing EC2 Instance ID’s. how long does it take ivermectin to start working I then Queried the results to only show the ID, Name and State (other properties can be added with ease). I also decided output to text was best for […]

Read More

Here is how I setup my AWS CLI on my Windows 7 machine. Download the CLI .MSI file AWS direct: https://aws.amazon.com/cli/ Run the MSI installation file (I install my CLI at C:\AWS for laziness when using the CLI) Open Command Prompt/Powershell Browse to your installed location and run aws –version PS K:\> cd C:\AWSCLi PS C:\AWSCLi> […]

Read More

This script was reuqired to tag a list of instance ID’s to change/add Service Owner tag. Please remember to confirgure powershell for AWS and also change the $tag.value variable   ######################################## ## Bulk Tag for Multiple Instances ## ## Ben Prudence – 07/09/2016 ## ######################################## ## Import-Module AWSPowershell ## Tag Details $tag = New-Object Amazon.EC2.Model.Tag […]

Read More

NOTE – For this script to work your instances must have a unique name tag. I use this tag for machine host-names. The requirement for this script was to snapshot all volumes of a machine before deploying Windows updates to ensure a safe and quick rollback option. This script is to snapshot and tag all attached […]

Read More

NOTE – For this script to work your instances must have a unique name tag. I use this tag for machine host-names. This script is to identify all attached volume ID’s from a single instance Name Tag within AWS Powershell. The sections below describe the action of script sections Import AWS Powershell module (needs to […]

Read More

To use AWS powershell you will need to download and install the module form AWS. The link and install instructions are below. https://aws.amazon.com/powershell/ Once the module is installed you should be able to run Powershell as administrator and configure your powershell as below: Set AWS Credential Profile Set-AWSCredentials -AccessKey {AKIAIOSFODNN7EXAMPLE} -SecretKey {wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY} -StoreAs {ProfileName} Initialize-AWSDefaults […]

Read More

This one liner was used when the password age group policy was reduced. It caused a massive amount of users not being able to login due to the password expiry policy now in place. We needed to find the password age so we used the PasswordLastSet attribute on each AD User to export to s […]

Read More

This Script was designed for a Service Desk Analyst to run. The AD user was already created and required the same AD groups as another user in the domain. This script exports the groups and adds them to the other user. NOTE – This script does not overwrite existing groups.  Below is an index of […]

Read More

This script was found on the following site and very useful for me when consolidating an Active Directory forest: https://nidhinck.wordpress.com/2013/07/23/find-empty-groups-in-active-directory-using-powershell-script/ The script can be run from a normal Powershell window or with the Windows Powershell with AD Modules installed already (If you are using the AD Shell please delete the first line of this script) […]

Read More