I'm having trouble getting the scripting driver (powershell) to add an
association. Driver is running on Win2008/64. I've attached my script and
the trace/log.

Thanks, Tom

script:
function idm_add
{
# ************************************************** *
# * Add implementation-specific code here. *
# * Specify the ADD_ASSOCIATION command to supply a *
# * unique association. *
# ************************************************** *
idm_setcommand "ADD_ASSOCIATION"
idm_writevalue "ASSOCIATION" (idm_geteventvalue "FirstName")
idm_writevalue "DEST_DN" (idm_geteventvalue "SRC_DN")
idm_statussuccess "Add event succeeded"
}

driver trace:
<input>
<add class-name="Mailbox" event-id="authidmt1#20090315223500#1#1"
qualified-src-dn="O=auth\OU=users\CN=TomTest10"
src-dn="\MYTREE\auth\users\TomTest10" src-entry-id="32962">
<add-attr attr-name="DisplayName">
<value timestamp="1237147984#1" type="string">Tom Test</value>
</add-attr>
<add-attr attr-name="FirstName">
<value timestamp="1237147675#1" type="string">Tom</value>
</add-attr>
<add-attr attr-name="LastName">
<value timestamp="1237147657#3" type="string">Test</value>
</add-attr>
<add-attr attr-name="Password">
<value type="string">Novell1</value>
</add-attr>
<add-attr attr-name="EmailAddress">
<value type="string">tomtest10@domain.com</value>
</add-attr>
</add>
</input>
</nds>
[02/22/1925 23:53:27.637] Outlook-Live ST:Remote Interface Driver:
Document sent. [03/29/1970 17:44:51.790] Outlook-Live :Remote Interface
Driver: Received. [12/31/1969 21:33:22.790] Outlook-Live : <nds
dtdversion="1.1" ndsversion="8.6">
<source>
<product build="Oct 30 2008 14:35:56" version="3.6.1"/> <contact/>
</source>
<output>
<status event-id="authidmt1#20090315223500#1#1" level="error">Error
executing script command for object \MYTREE\auth\users\TomTest10.
Event discarded.</status>
</output>
</nds>
[12/31/1969 18:00:00.791] Outlook-Live :Remote Interface Driver: Received
document for subscriber channel [12/31/1969 18:00:00.791] Outlook-Live
ST:SubscriptionShim.execute() returned: [12/31/1969 18:00:06.791]
Outlook-Live ST: <nds dtdversion="1.1" ndsversion="8.6">
<source>
<product build="Oct 30 2008 14:35:56" version="3.6.1"/> <contact/>
</source>
<output>
<status event-id="authidmt1#20090315223500#1#1" level="error">Error
executing script command for object \MYTREE\auth\users\TomTest10.
Event discarded.</status>
</output>
</nds>
[12/31/1969 18:00:00.791] Outlook-Live ST:No input transformation
policies. [10/26/2030 8:34:28.791] Outlook-Live ST:Applying schema mapping
policies to input. [06/04/1950 12:47:07.791] Outlook-Live ST:Applying
policy: Schema-Map. [01/01/1970 3:06:24.792] Outlook-Live ST:Resolving
association references. [12/31/1969 18:00:00.793] Outlook-Live
ST:Processing returned document. [03/28/1972 10:27:46.793] Outlook-Live
ST:Processing operation <status> for . [12/10/2032 6:34:44.794]
Outlook-Live ST: DirXML Log Event -------------------
Driver: \MYTREE\auth\DirXML Driverset\Outlook-Live Channel:
Subscriber
Object: \MYTREE\auth\users\TomTest10 Status: Error
Message: Error executing script command for object
\MYTREE\auth\users\TomTest10. Event discarded.
[12/31/1969 18:00:00.796] Outlook-Live :Remote Interface Driver: Waiting
for receive... [02/27/1970 9:34:10.801] Outlook-Live ST:End transaction.

script log:
2009-03-13 15:11:05 [2556@1784] (drv_statuslog): StatusLog_writeToLog: ending
2009-03-13 15:11:05 [2556@1784] (drv_statuslog): StatusLog_log: ending
2009-03-13 15:11:05 [2556@1784] (drv_statuslog): StatusLog_logElement: ending
2009-03-13 15:11:05 [2556@1784] (drv_connection): Connection_send: starting
2009-03-13 15:11:05 [2556@1784] (trace): Sending...
2009-03-13 15:11:05 [2556@1784] (trace): <nds dtdversion="2.0" ndsversion="8.x">
2009-03-13 15:11:05 [2556@1784] (trace): <output>
2009-03-13 15:11:05 [2556@1784] (trace): <init-params event-id="write-state" />
2009-03-13 15:11:05 [2556@1784] (trace): </output>
2009-03-13 15:11:05 [2556@1784] (trace): <status event-id="report status" level="success">Remote driver successfully started</status>
2009-03-13 15:11:05 [2556@1784] (trace): </nds>
2009-03-13 15:11:05 [2556@1784] (network_tcpip_ssl): tcp_ssl_write: starting, bytes to write=203
2009-03-13 15:11:05 [2556@1784] (network_tcpip_ssl): tcp_ssl_write: wrote 203 bytes
2009-03-13 15:11:05 [2556@1784] (network_tcpip_ssl): tcp_ssl_write: ending
2009-03-13 15:11:05 [2556@1784] (trace): Document sent.
2009-03-13 15:11:05 [2556@1784] (drv_connection): Connection_send: ending
2009-03-13 15:11:05 [2556@1784] (drv_driver): Driver_replyStatus: ending
2009-03-13 15:11:05 [2556@1784] (drv_driver): Driver_startDriver: ending with true
2009-03-13 15:11:05 [2556@1784] (drv_statuslog): StatusLog_clearDriverDn: starting
2009-03-13 15:11:05 [2556@1784] (drv_statuslog): StatusLog_clearDriverDn: ending
2009-03-13 15:11:05 [2556@1784] (drv_connection): Connection_receiveBytesWithCommand: starting
2009-03-13 15:11:05 [2556@1784] (drv_connection): Connection_waitForDocument: starting
2009-03-13 15:11:06 [2556@1752] (trace): Calling PublicationShim.start()
2009-03-13 15:11:06 [2556@1752] (trace): --->DriverShim publisher channel: start
2009-03-13 15:11:06 [2556@1752] (trace): --->DriverShim publisher channel: polling...
2009-03-13 15:11:06 [2556@1752] (trace): --->DriverShim publisher channel: executing poll
2009-03-13 15:11:06 [2556@1752] (trace): --->WindowsScript Driver Publisher channel: executing polling script
2009-03-13 15:11:06 [2556@1752] (trace): WindowsScript_executeCommand: Executing command scripts\powershell\Subscriber.ps1 "scripts\powershell\Poll.ps1" "C:\Users\ADMINI~1\AppData\Local\Temp\WSD518B. tmp"
2009-03-13 15:11:06 [2556@1752] (trace): WindowsScript_executeCommand: command failed with error code 193
2009-03-13 15:11:06 [2556@1752] (trace): --->WindowsScript Driver Publisher channel: polling script returned error 193
2009-03-13 15:11:06 [2556@1752] (trace): --->DriverShim publisher channel: checking change log
2009-03-13 15:11:06 [2556@1752] (drv_changelog): ChangeLog_rescan: starting
2009-03-13 15:11:06 [2556@1752] (drv_changelog): ChangeLog_rescan: ending with 0 events
2009-03-13 15:11:07 [2556@1468] (drv_loopback): LoopBack_timeStampTask: polling interval: 60
2009-03-13 15:11:08 [2556@2216] (listener): listener_poll_tasks: task 1784 (000006f8) is active
2009-03-13 15:11:09 [2556@1144] (trace): Received a non 'keep-alive' packet...
2009-03-13 15:11:09 [2556@1144] (trace): ReceiveDocumentHandler_parse() parsing incoming document
2009-03-13 15:11:09 [2556@1144] (trace): ReceiveDocumentHandler_parse() read command
2009-03-13 15:11:09 [2556@1144] (trace): Received.
2009-03-13 15:11:09 [2556@1144] (trace): <nds ndsversion="8.x" dtdversion="3.5">
2009-03-13 15:11:09 [2556@1144] (trace): <source>
2009-03-13 15:11:09 [2556@1144] (trace): <product version="3.6.0.4294">DirXML</product>
2009-03-13 15:11:09 [2556@1144] (trace): <contact>Novell, Inc.</contact>
2009-03-13 15:11:09 [2556@1144] (trace): </source>
2009-03-13 15:11:09 [2556@1144] (trace): <input>
2009-03-13 15:11:09 [2556@1144] (trace): <add src-entry-id="32962" src-dn="\MYTREE\auth\users\TomTest10" qualified-src-dn="O=auth\OU=users\CN=TomTest10" event-id="authidmt1#20090315223500#1#1" class-name="Mailbox">
2009-03-13 15:11:09 [2556@1144] (trace): <add-attr attr-name="DisplayName">
2009-03-13 15:11:09 [2556@1144] (trace): <value type="string" timestamp="1237147984#1">Tom Test</value>
2009-03-13 15:11:09 [2556@1144] (trace): </add-attr>
2009-03-13 15:11:09 [2556@1144] (trace): <add-attr attr-name="FirstName">
2009-03-13 15:11:09 [2556@1144] (trace): <value type="string" timestamp="1237147675#1">Tom</value>
2009-03-13 15:11:09 [2556@1144] (trace): </add-attr>
2009-03-13 15:11:09 [2556@1144] (trace): <add-attr attr-name="LastName">
2009-03-13 15:11:09 [2556@1144] (trace): <value type="string" timestamp="1237147657#3">Test</value>
2009-03-13 15:11:09 [2556@1144] (trace): </add-attr>
2009-03-13 15:11:09 [2556@1144] (trace): <add-attr attr-name="Password">
2009-03-13 15:11:09 [2556@1144] (trace): <value type="string">Novell1</value>
2009-03-13 15:11:09 [2556@1144] (trace): </add-attr>
2009-03-13 15:11:09 [2556@1144] (trace): <add-attr attr-name="EmailAddress">
2009-03-13 15:11:09 [2556@1144] (trace): <value type="string">tomtest10@domain.com</value>
2009-03-13 15:11:09 [2556@1144] (trace): </add-attr>
2009-03-13 15:11:09 [2556@1144] (trace): </add>
2009-03-13 15:11:09 [2556@1144] (trace): </input>
2009-03-13 15:11:09 [2556@1144] (trace): </nds>
2009-03-13 15:11:09 [2556@1144] (trace): Received document for subscriber channel
2009-03-13 15:11:09 [2556@1144] (drv_connection): Connection_queueDocument: starting
2009-03-13 15:11:09 [2556@1144] (drv_connection): Connection_queueDocument: ending
2009-03-13 15:11:09 [2556@1144] (drv_connection): Connection_receiveBytes: starting
2009-03-13 15:11:09 [2556@1144] (trace): Waiting for receive...
2009-03-13 15:11:09 [2556@1784] (drv_connection): Connection_receiveBytesWithCommand: ending
2009-03-13 15:11:09 [2556@1784] (drv_driver): Driver_registerObjectDn: starting
2009-03-13 15:11:09 [2556@1784] (drv_statuslog): StatusLog_registerObjectDn: starting dn = \MYTREE\auth\users\TomTest10
2009-03-13 15:11:09 [2556@1784] (drv_statuslog): StatusLog_registerObjectDn: ending
2009-03-13 15:11:09 [2556@1784] (drv_driver): Driver_registerObjectDn: ending
2009-03-13 15:11:09 [2556@1784] (trace): Calling SubscriptionShim.execute()
2009-03-13 15:11:09 [2556@1784] (trace): --->DriverShim subscriber execute()..
2009-03-13 15:11:09 [2556@1784] (trace): --->DriverShim subscriber dispatch() command = add
2009-03-13 15:11:09 [2556@1784] (drv_loopback): --->DriverShim Subscriber loopback: starting...
2009-03-13 15:11:09 [2556@1784] (drv_loopback): COMMAND=add
2009-03-13 15:11:09 [2556@1784] (drv_loopback): CLASS_NAME=Mailbox
2009-03-13 15:11:09 [2556@1784] (drv_loopback): EVENT_ID=authidmt1#20090315223500#1#1
2009-03-13 15:11:09 [2556@1784] (drv_loopback): SRC_DN=\MYTREE\auth\users\TomTest10
2009-03-13 15:11:09 [2556@1784] (drv_loopback): SRC_ENTRY_ID=32962
2009-03-13 15:11:09 [2556@1784] (drv_loopback): ADD_DisplayName=Tom Test
2009-03-13 15:11:09 [2556@1784] (drv_loopback): ADD_FirstName=Tom
2009-03-13 15:11:09 [2556@1784] (drv_loopback): ADD_LastName=Test
2009-03-13 15:11:09 [2556@1784] (drv_loopback): ADD_EmailAddress=tomtest10@domain.com
2009-03-13 15:11:09 [2556@1784] (drv_loopback): --->DriverShim Subscriber loopback: checking filter...
2009-03-13 15:11:09 [2556@1784] (drv_loopback): LoopBack_printFilterClass: class Mailbox
2009-03-13 15:11:09 [2556@1784] (drv_loopback): LoopBack_printFilterClass: attr DirXML-Associations
2009-03-13 15:11:09 [2556@1784] (drv_loopback): --->DriverShim Subscriber loopback: unable to retrieve object name or association; exiting
2009-03-13 15:11:09 [2556@1784] (trace): WindowsScript addHandler
2009-03-13 15:11:09 [2556@1784] (trace): WindowsScript addHandler creating input document
2009-03-13 15:11:09 [2556@1784] (trace): C:\Users\ADMINI~1\AppData\Local\Temp\WSD61D8.tmp
2009-03-13 15:11:09 [2556@1784] (trace): WindowsScript addHandler executing subscriber script
2009-03-13 15:11:09 [2556@1784] (trace): WindowsScript_executeCommand: Executing command scripts\powershell\Subscriber.ps1 "scripts\powershell\Subscriber.ps1" "C:\Users\ADMINI~1\AppData\Local\Temp\WSD61D8. tmp" "C:\Users\ADMINI~1\AppData\Local\Temp\WSD518B. tmp"
2009-03-13 15:11:09 [2556@1784] (trace): WindowsScript_executeCommand: command failed with error code 193
2009-03-13 15:11:09 [2556@1784] (trace): WindowsScript addHandler: complete
2009-03-13 15:11:09 [2556@1784] (trace): --->DriverShim subscriber dispatch() finished
2009-03-13 15:11:09 [2556@1784] (trace): SubscriptionShim.execute() returned:
2009-03-13 15:11:09 [2556@1784] (trace): <nds dtdversion="1.1" ndsversion="8.6">
2009-03-13 15:11:09 [2556@1784] (trace): <source>
2009-03-13 15:11:09 [2556@1784] (trace): <product version="3.6.1" build="Oct 30 2008 14:35:56" />
2009-03-13 15:11:09 [2556@1784] (trace): <contact />
2009-03-13 15:11:09 [2556@1784] (trace): </source>
2009-03-13 15:11:09 [2556@1784] (trace): <output>
2009-03-13 15:11:09 [2556@1784] (trace): <status event-id="authidmt1#20090315223500#1#1" level="error">Error executing script command for object \MYTREE\auth\users\TomTest10. Event discarded.</status>
2009-03-13 15:11:09 [2556@1784] (trace): </output>
2009-03-13 15:11:09 [2556@1784] (trace): </nds>
2009-03-13 15:11:09 [2556@1784] (drv_driver): Driver_sendReply: starting
2009-03-13 15:11:09 [2556@1784] (drv_connection): Connection_send: starting
2009-03-13 15:11:09 [2556@1784] (trace): Sending...
2009-03-13 15:11:09 [2556@1784] (trace): <nds dtdversion="1.1" ndsversion="8.6">
2009-03-13 15:11:09 [2556@1784] (trace): <source>
2009-03-13 15:11:09 [2556@1784] (trace): <product version="3.6.1" build="Oct 30 2008 14:35:56" />
2009-03-13 15:11:09 [2556@1784] (trace): <contact />
2009-03-13 15:11:09 [2556@1784] (trace): </source>
2009-03-13 15:11:09 [2556@1784] (trace): <output>
2009-03-13 15:11:09 [2556@1784] (trace): <status event-id="authidmt1#20090315223500#1#1" level="error">Error executing script command for object \MYTREE\auth\users\TomTest10. Event discarded.</status>
2009-03-13 15:11:09 [2556@1784] (trace): </output>
2009-03-13 15:11:09 [2556@1784] (trace): </nds>
2009-03-13 15:11:09 [2556@1784] (network_tcpip_ssl): tcp_ssl_write: starting, bytes to write=321
2009-03-13 15:11:09 [2556@1784] (network_tcpip_ssl): tcp_ssl_write: wrote 321 bytes
2009-03-13 15:11:09 [2556@1784] (network_tcpip_ssl): tcp_ssl_write: ending
2009-03-13 15:11:09 [2556@1784] (trace): Document sent.
2009-03-13 15:11:09 [2556@1784] (drv_connection): Connection_send: ending
2009-03-13 15:11:09 [2556@1784] (drv_driver): Driver_sendReply: ending
2009-03-13 15:11:09 [2556@1784] (drv_driver): Driver_checkShimError: starting
2009-03-13 15:11:09 [2556@1784] (drv_statuslog): StatusLog_logElement: starting
2009-03-13 15:11:09 [2556@1784] (drv_statuslog): StatusLog_getStatusMessage: starting
2009-03-13 15:11:09 [2556@1784] (drv_statuslog): StatusLog_getStatusMessage: ending msg = Error executing script command for object \MYTREE\auth\users\TomTest10. Event discarded.
2009-03-13 15:11:09 [2556@1784] (drv_statuslog): StatusLog_log: starting msg = Error executing script command for object \MYTREE\auth\users\TomTest10. Event discarded.
2009-03-13 15:11:09 [2556@1784] (drv_statuslog): StatusLog_getThreadString: starting
2009-03-13 15:11:09 [2556@1784] (drv_statuslog): StatusLog_getThreadString: ending ThreadString = Subscriber
2009-03-13 15:11:09 [2556@1784] (drv_statuslog): StatusLog_getObjectDn: starting
2009-03-13 15:11:09 [2556@1784] (drv_statuslog): StatusLog_getObjectDn: ending ObjectDn = \MYTREE\auth\users\TomTest10
2009-03-13 15:11:09 [2556@1784] (drv_statuslog): StatusLog_writeToLog: starting msg =
DirXML Log Event -------------------