AWS: Obtain BlendedCost billing data

There may be a case when you might want to use Get-CECostAndUsage Cmdlet, however I thought it might be helpful to document some examples. The AWS documentation doesn’t display any example. Below is my attempt to come up with some examples, which I found useful for me, may be someone else does too.   Running…

0

Create/Update AD users and Group Membership

Many of the times, you need to create users, groups, (test)OU for quick setting up environment. You may have a list of users and attributes in a CSV file for this purpose. However, generally the need to add certain users to be part of certain groups is based of of some logic. For example: HR,…

0

Compare two text files with PowerShell

Many of the times, we have need to compare 2 code files which are identical but some minor differences, mainly due to spelling/typing mistakes. This script tries to attend this issue by comparing 2 files line by line ignoring white space, tabs, line breaks. Here is sample output: Download Link: Script  

0

Backup Documents, Desktop and Favorites folder

    This script creates folder structure at the target backup location and copies Desktop, Documents and Favorites from User’s profile It takes a target variable targetFolder, to be the parent backup location. Feel free to modify as needed. It creates folder structure under targetFolder in YYYY_MMM_DD_HH.MM format and creates Desktop, Documents and Favorities folders…

1

Get Groupmembers’ Memberships

Many of the times, you might need to search the entire forest for a particular set of users, on the basis of a security group memberships. Here is a quick attempt to create a CSV file out of it. The script picks each member of the group in the parameter and export their direct group…

0

MDT2012: Populate MDT application bundle and its dependencies via PowerShell

Recently came across this need of pulling MDT Application bundles and apps in bundle, that is its dependencies. MDT 2012 lets you create a bundle of applications in which you can list multiple applications to be installed, together. Recently, I had a requirement to populate all of the bundles in MDT Share and its dependencies/applications…

0

Populate list of Applications / Dependencies in an Application Bundle in MDT 2012

MDT 2012 lets you create a bundle of applications in which you can list multiple applications to be installed, together. Recently, I had a requirement to populate all of the bundles in MDT Share and its dependencies/applications which should be available whenever needed with current information. I figured using MDT PowerShell module, can be pretty…

0

MDT: Import-MDTApplication : The system cannot find the path specified error

This many not be the only root cause for this error while you run into this error while running this Commandlet, but I found this very easy to come up with this error and difficult to diagnose on the basis of normal method of troubleshooting. This is MDT 2012 Update 1 and trying to publish…

0

How to filter event log more efficiently.

  Many of the times, we might need to dig deep into the event log, which might not be easily available through default fields available. For example, below event contains much more information than it displays in the event log.   Log Name:      Microsoft-Windows-GroupPolicy/Operational Source:        Microsoft-Windows-GroupPolicy Date:          5/27/2013 2:08:57 PM Event ID:      7004 Task Category:…

0

How to add local group to AD LDS Readers role using PowerShell

Posting this snippet in case someone needs to add a local group to AD LDS readers role, using PowerShell/ADSI.   #Get the SID of a local group $myGroup = New-Object security.principal.ntaccount(“myGroup2″) $myGroupSid = $myGroup.Translate([security.principal.securityidentifier])   #connect to partition $readersRole = [adsi]”LDAP://mdt:389/CN=Readers,CN=Roles,DC=myPartition”   #Add the group as member to Readers $memberToAdd = “<SID=$myGroupSid>” $readersRole.member.Add($memberToAdd) $readersRole.CommitChanges()  …

0