AD afteraction issue

Receiving the error below when processing an AD after action. The action calls a VB script that sets up the user's home directory properties and copies their notes id file into the home directory. It looks like an xml parsing issue as all of the special characters are similar to when you import a file into IDM. If I execute the bat file from the command prompt, it runs fine.

The following is the context of the action that is called:

Action received: 'echo cscript c:\homeshare.vbs %WSUSER_ADS% %WSUSER_sAMAccountName% %WSUSER_idFile% >c:\home.bat

c:\home.bat

'

The following is the contents of the home.bat file for the last test I ran:

cscript c:\homeshare.vbs SERVERNAME UID \\servername\data\0892-Notes\Notes\NotesIDs\TestIDs\SOZ1.id

Error=

) Windows Script Host Version 5.6

Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Error 462: Connecting to SERVERNAME

462The remote server machine does not exist or is unavailable

</object></ResultItem>

08/08/2006 15.20.37.051000 [3704] (../../../../src/wps/agent/object/RequestHandler.cpp,68):<ResultItem type='ACTION_STDERR'>

08/08/2006 15.20.37.051000 [3704] (../../../../src/wps/agent/object/RequestHandler.cpp,68): <object class='String'></object></ResultItem>

Message was edited by:

TD_ROC

[1414 byte] By [TD_ROC] at [2007-11-26 9:20:20]
# 1
OK - solved. You need to duplicate the user environment EXACTLY as it is when you are logged on as the user.
TD_ROC at 2007-7-6 23:51:25 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

TD_ROC could you elaborate on this.

Could you state which environment variables you "set" within the after-action <act> </act> block to duplicate your environment.

None of this is documented.

I guess every AD environment is going to be different but I would hope that Sun IdM support must have enough experience to publish some sort of guideline to follow.

greenfan88 at 2007-7-6 23:51:25 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3
I ran the set command and copied and pasted the environment exactly from the output. I haven't had the time to iterate through the list to see what I can and cannot live without.
TD_ROC at 2007-7-6 23:51:25 > top of Java-index,Web & Directory Servers,Directory Servers...