Skip to content

Code Snippets

These code snippets are offered for inspiration only, and with no assertion that they are the best approaches. There is no guarantee that they will work unmodified in your environment. 

Note if you have trouble with the code after copy-and-paste it is most likely the single- and double-quote characters, which WordPress insists on changing.

Metaverse Extensions (Provisioning Code)

Getting Started with Provisioning Simple code examples
MVExtension.vb AD, openLDAP and IIS
Keep Provisioning Logic out of the Provisioning Code Simplify your provisioning code by moving decision making logic outside ILM

MA Extensions

exportRfc822MailMember, exportDescription Some export flow rules
Uniqueness check against the Metaverse Metaverve SQL lookup from an Import flow rule
Adding Exchange 2003 Mailboxes to Existing Accounts Add a mailbox by populating attributes in export flow rules

Conector Space Extensions (XMAs) 

CSExtension_Mailbox.vb  Enable Exch2007 mailboxes – an example of calling powershell cmdlets from a CSExtension.
StaffWebsites_CSExtension.vb Call IIS vbscripts to create, rename and delete IIS virtual directories

FIM 2010 powershell scripts

create-fimsecgroups.ps1 Bulk create Criteria-based Security Groups in the FIM Portal from a cvs file.
create-fimdistlists.ps1 Bulk create Criteria-based Distribution Lists in the FIM Portal from a csv file, where the criteria is that members share the same Manager.

Other VB.NET

ILM_Scheduler service Post and link to source code
ViewSource_People.vb
DisplayActivityLog, DisplayQueue, DisplayDisables
Sub DisplayPendingExports
PendingExports.vb
Build Export Menu
Componets of MiisApp – a client application for MIIS.

vbscript
Function RunProfile
Sub ArchiveLog
Function ExportsPending
Function DeltaImportsPending
Function RunSSIS
Function RunDTS

Sub WriteLog

Import/Export logs stylesheet
Log.XSL

Other vbscripts
Import attributes into AD from Excel:
Script 1 – uses DNs
Script 2 – uses CNs

SQL Queries

Find metaverse objects with n connectors