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

This script was required by a company as they renewed there Microsoft agreement with different levels of O365 Licenses, replacing E1 and EO2 licenses with E3 and EMS. The script is padded out with outputs to the initiator to see what is going on. Sections are broken down as follows: Connect to Microsoft Online with […]

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 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

Format-List is a very useful command throughout the Powershell based applications which I use every day. لعبة الدومينو الامريكية Command | Format-List This command gives you a list of all the attributes against the object you run it against. This is extremely useful if you are unsure on an attribute, see my example below where I want to know […]

Read More

Get-Member is a very useful command throughout the Powershell based applications which I use every day. اسرار البلاك جاك Command | Get-Member This command gives you a list of all the attributes against the method type and the definition. This is extremely useful if you are unsure on an attribute, see my example below where I want to […]

Read More