i'm attempting the exchange scripting driver 2007 for powershell.
config
locally installed idm 3.6.1, windows mad driver 3.5.13 and scripting
driver 3.6.1.6 (from idm 4.01 iso) with remote loader installed on the
same win2k8r2 windows box which is a member of domain, exchange cmdlets,
.net etc etc
followed all the installation instructions to the letter as per

'Identity Manager Exchange 2007 Scripts'
(http://www.novell.com/developer/ndk/...7_scripts.html).

AD driver works fine and sets dirxml-ExShellState to enabled, and
passes the required attribute info to the scripting driver which
generates the required ps add script to the scripting driver shim but
powershell consistently throws back the error msg below.

WindowsScript_executeCommand: command exited with code 0

full trace below


2011-07-18 16:40:20 [3444@3232] (trace): </nds>
2011-07-18 16:40:20 [3444@2428] (trace): Received.
2011-07-18 16:40:20 [3444@2428] (trace): <nds ndsversion="8.x"
dtdversion="3.5">
2011-07-18 16:40:20 [3444@2428] (trace): <source>
2011-07-18 16:40:20 [3444@2428] (trace): <product
version="3.6.14.5471">DirXML</product>
2011-07-18 16:40:20 [3444@2428] (trace): <contact>Novell,
Inc.</contact>
2011-07-18 16:40:20 [3444@2428] (trace): </source>
2011-07-18 16:40:20 [3444@2428] (trace): <input>
2011-07-18 16:40:20 [3444@2428] (trace): <add
src-entry-id="34512" src-dn="\UK-AC-MIKIDMUP\uk\ac\test\mary2"
qualified-src-dn="C=uk\O=ac\OU=test\CN=mary2"
event-id="adidmex10s##1313de7a4e0##0" class-name="User">
2011-07-18 16:40:20 [3444@2428] (trace): <add-attr
attr-name="CN">
2011-07-18 16:40:20 [3444@2428] (trace): <value
type="string" timestamp="1311003568#20" naming="true">mary2</value>
2011-07-18 16:40:20 [3444@2428] (trace): </add-attr>
2011-07-18 16:40:20 [3444@2428] (trace): <add-attr
attr-name="DirXML-ExShellState">
2011-07-18 16:40:20 [3444@2428] (trace): <value
type="string" timestamp="1311003617#7">Enabled</value>
2011-07-18 16:40:20 [3444@2428] (trace): </add-attr>
2011-07-18 16:40:20 [3444@2428] (trace): <add-attr
attr-name="Full Name">
2011-07-18 16:40:20 [3444@2428] (trace): <value
type="string" timestamp="1311003581#6">mary2 shaw2</value>
2011-07-18 16:40:20 [3444@2428] (trace): </add-attr>
2011-07-18 16:40:20 [3444@2428] (trace): <add-attr
attr-name="Given Name">
2011-07-18 16:40:20 [3444@2428] (trace): <value
type="string" timestamp="1311003581#1">mary2</value>
2011-07-18 16:40:20 [3444@2428] (trace): </add-attr>
2011-07-18 16:40:20 [3444@2428] (trace): <add-attr
attr-name="Surname">
2011-07-18 16:40:20 [3444@2428] (trace): <value
type="string" timestamp="1311003568#3">shaw2</value>
2011-07-18 16:40:20 [3444@2428] (trace): </add-attr>
2011-07-18 16:40:20 [3444@2428] (trace): <add-attr
attr-name="sAMAccountName">
2011-07-18 16:40:20 [3444@2428] (trace):
<value>mary2</value>
2011-07-18 16:40:20 [3444@2428] (trace): </add-attr>
2011-07-18 16:40:20 [3444@2428] (trace): <password><!--
Content Suppressed --></password>
2011-07-18 16:40:20 [3444@2428] (trace): </add>
2011-07-18 16:40:20 [3444@2428] (trace): </input>
2011-07-18 16:40:20 [3444@2428] (trace): </nds>
2011-07-18 16:40:20 [3444@2428] (trace): Received document for
subscriber channel
2011-07-18 16:40:20 [3444@2428] (drv_connection):
Connection_queueDocument: starting
2011-07-18 16:40:20 [3444@2428] (drv_connection):
Connection_queueDocument: ending
2011-07-18 16:40:20 [3444@2428] (drv_connection):
Connection_receiveBytes: starting
2011-07-18 16:40:20 [3444@2428] (trace): Waiting for receive...
2011-07-18 16:40:20 [3444@3232] (trace): Document sent.
2011-07-18 16:40:20 [3444@3232] (drv_connection): Connection_send:
ending
2011-07-18 16:40:20 [3444@3232] (drv_driver): Driver_sendReply:
ending
2011-07-18 16:40:20 [3444@3232] (drv_driver): Driver_checkShimError:
starting
2011-07-18 16:40:20 [3444@3232] (drv_driver): Driver_checkShimError:
ending rc = 1
2011-07-18 16:40:20 [3444@3232] (drv_driver):
Driver_unregisterObjectDn: starting
2011-07-18 16:40:20 [3444@3232] (drv_driver):
Driver_unregisterObjectDn: ending
2011-07-18 16:40:20 [3444@3232] (drv_connection):
Connection_receiveBytesWithCommand: starting
2011-07-18 16:40:20 [3444@3232] (drv_connection):
Connection_waitForDocument: starting
2011-07-18 16:40:20 [3444@3232] (drv_connection):
Connection_receiveBytesWithCommand: ending
2011-07-18 16:40:20 [3444@3232] (drv_driver):
Driver_registerObjectDn: starting
2011-07-18 16:40:20 [3444@3232] (drv_driver):
Driver_registerObjectDn: ending
2011-07-18 16:40:20 [3444@3232] (trace): Calling
SubscriptionShim.execute()
2011-07-18 16:40:20 [3444@3232] (trace): --->DriverShim subscriber
execute()..
2011-07-18 16:40:20 [3444@3232] (trace): --->DriverShim subscriber
dispatch() command = add
2011-07-18 16:40:20 [3444@3232] (drv_loopback): --->DriverShim
Subscriber loopback: starting...
2011-07-18 16:40:20 [3444@3232] (drv_loopback): COMMAND=add
2011-07-18 16:40:20 [3444@3232] (drv_loopback): CLASS_NAME=User
2011-07-18 16:40:20 [3444@3232] (drv_loopback):
EVENT_ID=adidmex10s##1313de7a4e0##0
2011-07-18 16:40:20 [3444@3232] (drv_loopback):
SRC_DN=\UK-AC-MIKIDMUP\uk\ac\test\mary2
2011-07-18 16:40:20 [3444@3232] (drv_loopback):
SRC_ENTRY_ID=34512
2011-07-18 16:40:20 [3444@3232] (drv_loopback): ADD_CN=mary2
2011-07-18 16:40:20 [3444@3232] (drv_loopback):
ADD_DirXML-ExShellState=Enabled
2011-07-18 16:40:20 [3444@3232] (drv_loopback): ADD_Full
Name=mary2 shaw2
2011-07-18 16:40:20 [3444@3232] (drv_loopback): ADD_Given
Name=mary2
2011-07-18 16:40:20 [3444@3232] (drv_loopback): ADD_Surname=shaw2
2011-07-18 16:40:20 [3444@3232] (drv_loopback):
ADD_sAMAccountName=mary2
2011-07-18 16:40:20 [3444@3232] (drv_loopback): --->DriverShim
Subscriber loopback: checking filter...
2011-07-18 16:40:20 [3444@3232] (drv_loopback): --->DriverShim
Subscriber loopback: class not found in Publisher filter
2011-07-18 16:40:20 [3444@3232] (trace): WindowsScript addHandler
2011-07-18 16:40:20 [3444@3232] (trace): WindowsScript addHandler
creating input document
2011-07-18 16:40:20 [3444@3232] (trace):
C:\Users\dirxml\AppData\Local\Temp\WSD8BF9.tmp
2011-07-18 16:40:20 [3444@3232] (trace): WindowsScript addHandler
executing subscriber script
2011-07-18 16:40:20 [3444@3232] (trace):
WindowsScript_executeCommand: Executing command powershell
-PSConsoleFile "C:\Program Files\Microsoft\Exchange
Server\V14\Bin\exshell.psc1" "scripts\powershell\Subscriber.ps1"
"C:\Users\dirxml\AppData\Local\Temp\WSD8BF9.tm p"
"C:\Users\dirxml\AppData\Local\Temp\WSD83B.tmp "
2011-07-18 16:40:23 [3444@3232] (trace):
WindowsScript_executeCommand: command exited with code 0
2011-07-18 16:40:23 [3444@3232] (trace): subscriberParseResponse:
[IDMSETVAR: COMMAND=status]
2011-07-18 16:40:23 [3444@3232] (trace): subscriberParseResponse:
[IDMSETVAR: STATUS_LEVEL=success]
2011-07-18 16:40:23 [3444@3232] (trace): subscriberParseResponse:
[IDMSETVAR: STATUS_MESSAGE=Add event succeeded]
2011-07-18 16:40:23 [3444@3232] (trace): WindowsScript addHandler:
complete
2011-07-18 16:40:23 [3444@3232] (trace): --->DriverShim subscriber
dispatch() finished
2011-07-18 16:40:23 [3444@3232] (trace): SubscriptionShim.execute()
returned:
2011-07-18 16:40:23 [3444@3232] (trace): <nds dtdversion="1.1"
ndsversion="8.6">
2011-07-18 16:40:23 [3444@3232] (trace): <source>
2011-07-18 16:40:23 [3444@3232] (trace): <product
version="4.0.1" build="Mar 15 2011 11:29:46" />
2011-07-18 16:40:23 [3444@3232] (trace): <contact />
2011-07-18 16:40:23 [3444@3232] (trace): </source>
2011-07-18 16:40:23 [3444@3232] (trace): <output>
2011-07-18 16:40:23 [3444@3232] (trace): <status
event-id="adidmex10s##1313de7a4e0##0" level="success">Add event
succeeded</status>
2011-07-18 16:40:23 [3444@3232] (trace): </output>
2011-07-18 16:40:23 [3444@3232] (trace): </nds>
2011-07-18 16:40:23 [3444@3232] (drv_driver): Driver_sendReply:
starting
2011-07-18 16:40:23 [3444@3232] (drv_connection): Connection_send:
starting
2011-07-18 16:40:23 [3444@3232] (trace): Sending...
2011-07-18 16:40:23 [3444@3232] (trace): <nds dtdversion="1.1"
ndsversion="8.6">
2011-07-18 16:40:23 [3444@3232] (trace): <source>
2011-07-18 16:40:23 [3444@3232] (trace): <product
version="4.0.1" build="Mar 15 2011 11:29:46" />
2011-07-18 16:40:23 [3444@3232] (trace): <contact />
2011-07-18 16:40:23 [3444@3232] (trace): </source>
2011-07-18 16:40:23 [3444@3232] (trace): <output>
2011-07-18 16:40:23 [3444@3232] (trace): <status
event-id="adidmex10s##1313de7a4e0##0" level="success">Add event
succeeded</status>
2011-07-18 16:40:23 [3444@3232] (trace): </output>
2011-07-18 16:40:23 [3444@3232] (trace): </nds>
2011-07-18 16:40:23 [3444@3232] (trace): Document sent.
2011-07-18 16:40:23 [3444@3232] (drv_connection): Connection_send:
ending
2011-07-18 16:40:23 [3444@3232] (drv_driver): Driver_sendReply:
ending
2011-07-18 16:40:23 [3444@3232] (drv_driver): Driver_checkShimError:
starting
2011-07-18 16:40:23 [3444@3232] (drv_driver): Driver_checkShimError:
ending rc = 1
2011-07-18 16:40:23 [3444@3232] (drv_driver):
Driver_unregisterObjectDn: starting
2011-07-18 16:40:23 [3444@3232] (drv_driver):
Driver_unregisterObjectDn: ending
2011-07-18 16:40:23 [3444@3232] (drv_connection):
Connection_receiveBytesWithCommand: starting
2011-07-18 16:40:23 [3444@3232] (drv_connection):
Connection_waitForDocument: starting
2011-07-18 16:40:38 [3444@2660] (trace): --->DriverShim publisher
channel: polling...
2011-07-18 16:40:38 [3444@2660] (trace): --->DriverShim publisher
channel: executing poll
2011-07-18 16:40:38 [3444@2660] (trace): --->WindowsScript Driver
Publisher channel: executing polling script
2011-07-18 16:40:38 [3444@2660] (trace):
WindowsScript_executeCommand: Executing command powershell
-PSConsoleFile "C:\Program Files\Microsoft\Exchange
Server\V14\Bin\exshell.psc1" "scripts\powershell\Poll.ps1"
"C:\Users\dirxml\AppData\Local\Temp\WSD83B.tmp "
2011-07-18 16:40:41 [3444@2660] (trace):
WindowsScript_executeCommand: command exited with code 0
2011-07-18 16:40:41 [3444@2660] (trace): --->DriverShim publisher
channel: checking change log
2011-07-18 16:40:41 [3444@2660] (drv_changelog): ChangeLog_rescan:
starting
2011-07-18 16:40:41 [3444@2660] (drv_changelog): ChangeLog_rescan:
ending with 0 events
2011-07-18 16:41:16 [3444@2324] (drv_loopback):
LoopBack_timeStampTask: expiring timestamps
2011-07-18 16:41:16 [3444@2324] (drv_loopback):
LoopBack_expireTimeStamps: removing entries older than 20110718153916Z
2011-07-18 16:41:16 [3444@2324] (drv_loopback):
LoopBack_writeTimeStampFile: removing timestamp file (if present)
2011-07-18 16:41:41 [3444@2660] (trace): --->DriverShim publisher
channel: polling...
2011-07-18 16:41:41 [3444@2660] (trace): --->DriverShim publisher
channel: executing poll
2011-07-18 16:41:41 [3444@2660] (trace): --->WindowsScript Driver
Publisher channel: executing polling script
2011-07-18 16:41:41 [3444@2660] (trace):
WindowsScript_executeCommand: Executing command powershell
-PSConsoleFile "C:\Program Files\Microsoft\Exchange
Server\V14\Bin\exshell.psc1" "scripts\powershell\Poll.ps1"
"C:\Users\dirxml\AppData\Local\Temp\WSD83B.tmp "
2011-07-18 16:41:44 [3444@2660] (trace):
WindowsScript_executeCommand: command exited with code 0
2011-07-18 16:41:44 [3444@2660] (trace): --->DriverShim publisher
channel: checking change log
2011-07-18 16:41:44 [3444@2660] (drv_changelog): ChangeLog_rescan:
starting
2011-07-18 16:41:44 [3444@2660] (drv_changelog): ChangeLog_rescan:
ending with 0 events
2011-07-18 16:42:17 [3444@2324] (drv_loopback):
LoopBack_writeTimeStampFile: removing timestamp file (if present)
2011-07-18 16:42:44 [3444@2660] (trace): --->DriverShim publisher
channel: polling...
2011-07-18 16:42:44 [3444@2660] (trace): --->DriverShim publisher
channel: executing poll
2011-07-18 16:42:44 [3444@2660] (trace): --->WindowsScript Driver
Publisher channel: executing polling script
2011-07-18 16:42:44 [3444@2660] (trace):
WindowsScript_executeCommand: Executing command powershell
-PSConsoleFile "C:\Program Files\Microsoft\Exchange
Server\V14\Bin\exshell.psc1" "scripts\powershell\Poll.ps1"
"C:\Users\dirxml\AppData\Local\Temp\WSD83B.tmp "
2011-07-18 16:42:47 [3444@2660] (trace):
WindowsScript_executeCommand: command exited with code 0
2011-07-18 16:42:47 [3444@2660] (trace): --->DriverShim publisher
channel: checking change log
2011-07-18 16:42:47 [3444@2660] (drv_changelog): ChangeLog_rescan:
starting
2011-07-18 16:42:47 [3444@2660] (drv_changelog): ChangeLog_rescan:
ending with 0 events
2011-07-18 16:43:17 [3444@2324] (drv_loopback):
LoopBack_timeStampTask: expiring timestamps
2011-07-18 16:43:17 [3444@2324] (drv_loopback):
LoopBack_expireTimeStamps: removing entries older than 20110718154117Z
2011-07-18 16:43:17 [3444@2324] (drv_loopback):
LoopBack_writeTimeStampFile: removing timestamp file (if present)
2011-07-18 16:43:47 [3444@2660] (trace): --->DriverShim publisher
channel: polling...
2011-07-18 16:43:47 [3444@2660] (trace): --->DriverShim publisher
channel: executing poll
2011-07-18 16:43:47 [3444@2660] (trace): --->WindowsScript Driver
Publisher channel: executing polling script
2011-07-18 16:43:47 [3444@2660] (trace):
WindowsScript_executeCommand: Executing command powershell
-PSConsoleFile "C:\Program Files\Microsoft\Exchange
Server\V14\Bin\exshell.psc1" "scripts\powershell\Poll.ps1"
"C:\Users\dirxml\AppData\Local\Temp\WSD83B.tmp "
2011-07-18 16:43:50 [3444@2660] (trace):
WindowsScript_executeCommand: command exited with code 0
2011-07-18 16:43:50 [3444@2660] (trace): --->DriverShim publisher
channel: checking change log
2011-07-18 16:43:50 [3444@2660] (drv_changelog): ChangeLog_rescan:
starting
2011-07-18 16:43:50 [3444@2660] (drv_changelog): ChangeLog_rescan:
ending with 0 events
2011-07-18 16:44:17 [3444@2324] (drv_loopback):
LoopBack_writeTimeStampFile: removing timestamp file (if present)
2011-07-18 16:44:50 [3444@2660] (trace): --->DriverShim publisher
channel: polling...
2011-07-18 16:44:50 [3444@2660] (trace): --->DriverShim publisher
channel: executing poll
2011-07-18 16:44:50 [3444@2660] (trace): --->WindowsScript Driver
Publisher channel: executing polling script
2011-07-18 16:44:50 [3444@2660] (trace):
WindowsScript_executeCommand: Executing command powershell
-PSConsoleFile "C:\Program Files\Microsoft\Exchange
Server\V14\Bin\exshell.psc1" "scripts\powershell\Poll.ps1"
"C:\Users\dirxml\AppData\Local\Temp\WSD83B.tmp "
2011-07-18 16:44:53 [3444@2660] (trace):
WindowsScript_executeCommand: command exited with code 0
2011-07-18 16:44:53 [3444@2660] (trace): --->DriverShim publisher
channel: checking change log
2011-07-18 16:44:53 [3444@2660] (drv_changelog): ChangeLog_rescan:
starting
2011-07-18 16:44:53 [3444@2660] (drv_changelog): ChangeLog_rescan:
ending with 0 events
2011-07-18 16:45:17 [3444@2324] (drv_loopback):
LoopBack_timeStampTask: expiring timestamps
2011-07-18 16:45:17 [3444@2324] (drv_loopback):
LoopBack_expireTimeStamps: removing entries older than 20110718154317Z
2011-07-18 16:45:17 [3444@2324] (drv_loopback):
LoopBack_writeTimeStampFile: removing timestamp file (if present)


when it comes to the big script file here

WindowsScript_executeCommand: Executing command powershell
-PSConsoleFile "C:\Program Files\Microsoft\Exchange
Server\V14\Bin\exshell.psc1" "scripts\powershell\Subscriber.ps1"
"C:\Users\dirxml\AppData\Local\Temp\WSD7FA4.tm p"
"C:\Users\dirxml\AppData\Local\Temp\WSD83B.tmp "

i've checked the paths and wsd8bf9.tmp, the input document isnt there -
although procmon shows its being created - wsd83b.tmp, the one created
when the driver restarts is created and looks fine.

interesting to note that the pollling script fails as well.

2011-07-18 16:43:47 [3444@2660] (trace):
WindowsScript_executeCommand: Executing command powershell
-PSConsoleFile "C:\Program Files\Microsoft\Exchange
Server\V14\Bin\exshell.psc1" "scripts\powershell\Poll.ps1"
"C:\Users\dirxml\AppData\Local\Temp\WSD83B.tmp "
2011-07-18 16:43:50 [3444@2660] (trace):
WindowsScript_executeCommand: command exited with code 0


anyone got any ideas?
its one thats been in the forums before but none of the previous
solutions seem relevant to this case.
thanks for any assistance
mike


--
zzalsmre
------------------------------------------------------------------------
zzalsmre's Profile: http://forums.novell.com/member.php?userid=13016
View this thread: http://forums.novell.com/showthread.php?t=442032