Category Archives: Scripting

GUIDs and octet strings (converting between them)

I’ve been working on a relatively simple synchronisation project that consists of two Active Directory Domain Services (AD DS) forests (the source forest, a single label root domain and three child domains; and the target forest, a single domain forest … Continue reading

Posted in Programming, Scripting | Tagged , , , , , | 5 Comments

Editing the FIM Portal web.config in a farm topology

Hit an interesting issue this week.  One of the projects I’m working on was patching pre-production with 4.1.3419.0 and at the end of the process two of the four portals were down.  Properly down.  HTTP 500 error.  The issue was … Continue reading

Posted in FIM, Scripting, SharePoint | Tagged , , , , , , | 1 Comment

FIM, PowerShell and DateTime type attributes

In FIM 2010 we couldn’t update DateTime attribute types using the Configuration Migration PowerShell cmdlets.  This used to crop up from time to time and has hampered quite a few people over the last couple of years.  The good news … Continue reading

Posted in FIM, FIM 2010 R2, Scripting | Tagged , , , , , , | 6 Comments

Initialising arrays in PowerShell

Initializing arrays in PowerShell (en-US spelling for search engine purposes ). I think it’s taken me three years to work this out and it took a rushed script with a typo to figure it out.  Later I finally found the … Continue reading

Posted in Scripting | Tagged , , | Leave a comment

Obtaining a random result set in PowerShell

Given a set of data how does one return an arbitrary subset?  Well in T-SQL we’d do this: So how can we do this in PowerShell?  Well in pretty much the same way actually.  Pipe to Sort-Object and then to … Continue reading

Posted in Off-topic, Scripting | Tagged , , , | Leave a comment

How to use Sort Keys in LDP

I knocked up an example PowerShell one liner for a colleague to get the oldest item in the Deleted Objects container because of a need to identify the default tombstone lifetime (i.e. when there’s no value on the nTDSService object’s … Continue reading

Posted in Active Directory, Scripting | Tagged , , , , , , | Leave a comment

Invoking (running) SQL Server Agent Jobs using PowerShell

As I navigate the meandering thread of complexities that is the identity management project I inevitably find myself using SQL Server more and more.  Forgone is the text delimited management agent; embraced is the database management agent (specifically, SQL Server).  … Continue reading

Posted in Scripting, SQL Server | Tagged , , , , , , , , | 1 Comment