Extract Mircrosoft Active Directory GPO report via PowerShell

Extract Mircrosoft Active Directory GPO report via PowerShell

Greetings! Domain policy management is one of critical task. We divide polices into multiple GPO depending upon our requirement. PowerShell is one of the powerful tool we have now. In this article we will see how we can create reports for our GPO using PowerShell. First step you need GroupPolicy available on your machine. It is part of Group Policy Management tools which is available as feature on our Windows Server. Once you have installed this feature you have all cmdlets available which are required to manage GPO using PowerShell. You can check…Read more …
Get AWS IAM custom policies and action assigned to it using AWS lambda

Get AWS IAM custom policies and action assigned to it using AWS lambda

Greetings! When it comes to public cloud, access control is very important part in it. It is recommended to use roles for services then using crentials when using AWS lambda. Custom plocies are then very important and there mangement ver critical. You should be in control of what roles has what kind of access. This sctipt lists all your custom policies and actions assigned to it. You can find script here. Please note you will not get inline policies with this. Happy Coding!Read more …
Get all snapshots in your AWS environment using AWS lambda

Get all snapshots in your AWS environment using AWS lambda

Greetings! Managing snapshots is very critical and complex topic in any environment. You should keep a track of snapshots with their creation date. You should be aware when one snapshot should be deleted, as it would be consuming space. In this lambda script you can get consolidated report for all snapshots in your environment. I have excluded the snapshots which are copied from same or different zone. Those snapshots have volume id as vol-ffffffff. I think those should be managed separately but if you want to track those also you can simply remove…Read more …
Search for particular tag name for all instances using AWS lambda

Search for particular tag name for all instances using AWS lambda

Greetings! Tags are very helpful feature in AWS. You can store information related to your business or resource configuration using tags. It helps us to query for resources based on particular condition. This lambda function queries for name tag for all instances in particular region in a particular account and returns its value. You can find script here. Happy coding!  Read more …
Get public IP addresses of all EC2 instances in single AWS account

Get public IP addresses of all EC2 instances in single AWS account

Greetings! When you are working in big organization and server count is very high it is very tedious to manage networks. Public IP address management is very critical, you should be aware what machines are exposed to Internet. This python lambda scripts gets list of all public IP addresses availble in your account. You can find script here. Happy Coding!Read more …
Filter data in AWS DynamoDB using AWS Lambda

Filter data in AWS DynamoDB using AWS Lambda

Greetings! Working with data in dynamodb is different from SQL databases. We are use to use select queries to search data. In dynamodb it is different. I am using dynamodb scan function to search for particular values in my database. Here I am displaying values of ColumnA by filtering particular value from ColumnB. You can find the code here. Happy Coding!Read more …
Get all EC2 instances from all regions and store it in dynamodb

Get all EC2 instances from all regions and store it in dynamodb

Greetings! In AWS we have multiple regions, if you want to check resources or services of particular region you need to switch to that region first. This script will fetch EC2 instance name, ID and type from all regions. The script has two parts which I have divided into two functions. One functions collects all the information and second adds that to dynamodb. you can skip second part and save it in csv in S3 bucket. You can find script here. Happy Coding!Read more …

Spanning Tree Protocal and Portfast

Purpose of STP is to remove redundant paths in network. The redundant paths could be creating loops in network. Loop free path is created using root bridge. Loops in network are determined and links which are redundant are blocked. Algorithm used to execute this process is Spanning-Tree algorithm. In this protocol STA chooses reference point called Root Bridge, all available paths are determined in reference to this root bridge. If there is redundant paths then it chooses best path and block other paths. Messages are exchanged between switches to gather information from all…Read more …

Copy administrative privileges among users using Powershell for Citrix Xenapp

In this article we would copy administrative privileges of one user to another. It is very tedious task to manage custom privileges using access management console. Let us assume we have a new person joining in team and he needs to be provided custom privileges as other team mates. The shortest and easy way to do this is using Powershell. First we need to create administrator with custom which you can do by using information from my previous article. Now we have custom user. Let us assume the name of user joining is…Read more …

Citrix MFCOM script to get list of servers and their IP addresses on a farm

By using the following script you can get the list of servers along with their IP addresses published on a farm. The result would be generated in MS Excel. So you must have MS Excel installed on your system in order to execute it. Code: <package><job id=" FarmApplications"> <runtime> <description> List Servers and their IP address for all apps in the farm. </description> </runtime> <reference object="MetaFrameCOM.MetaFrameFarm"/> <script language="VBScript"> Dim wkbNew Set objExcel = CreateObject("Excel.Application") Set wkbNew = objExcel.Workbooks.Add set wksNew = wkbNew.Worksheets(1) wksNew.Activate wksNew.Application.Visible = True Dim theFarm,AppName ,anApp,aServer, Array() Set oShell =…Read more …