Woops, I reached a dead-end. System.DirectoryServices.dll is not referenced in the script compiler. I can't work around this in a transform.
Excerpt from Help File:
DTM establishes certain system assembly references before compiling your
scripts. }}--> }}-->These
references apply to all scripts and cannot be overridden. }}--> }}-->These references
are:
-
MsCorLib.dll
-
System.dll
-
System.Data.dll
-
System.Xml.dll
System.DirectoryServices, in particular, is “off-limits” to your scripts. }}--> }}-->This prevents direct
access to ActiveDirectory and other LDAP data stores. }}--> }}-->This is a desirable
restriction, as it prevents your script from acting in conflict with DTM –
which, after all, has final responsibility for updating these data stores.
.Net Namespaces
DTM imports certain namespaces when compiling your scripts. }}--> }}-->These imports apply to
all scripts and cannot be overridden. }}--> }}-->These imports are: