Skip to main content


Showing posts from July, 2011

FIM 2010 - PowerShell Extension

Update 2011-07-01: I have moved the code, docs, scripts to

I have been busy, thus why I haven't posted here in a while, learning FIM 2010. One of the features that are nice about FIM 2010 is the codeless provisioning you can do. However, you will reach a point where you need more than what is available out of the box. I don't want to have to write .NET code everytime I need to customize an attribute flow. So, I built a simple extension class that loads PowerShell scripts for the MA's data directory and runs the commands via that. FIM 2010 has a long way to go to being perfect, but with this simple extension code, customization is slightly less painful than banging your head against the wall trying to figure out how to use as much out of the box as possible...

Example scripts are below:

param($csentry)  $ADS_UF_ACCOUNTDISABLE = 0x002  $ADS_UF_NORMAL_ACCOUNT = 0x200  switch ($csentry.ObjectType)  {  'user'    {  if ($csentry.D…