Hello all,

I have spent more than 2 hours trying to figure out this problem, and I think it's time to run it by you ! \:\)

I have always been able to run psexec to trigger a kix script on a remote machine without any problems.

Today, as I was writing some scripts, I used that same method, only to find that it's always failing. I'm running XP SP3 in a VMWare View 4 environment.
Running kix32 version 4.61 (also tried 4.60)
psexec is at version 1.96
logged on user currently has local admin privileges, though I'd prefer for the particular script I'm working on to run in the system account without loading a profile, as non of what it's doing is profile related. (changing some files in the root of C: and making a couple of registry entry changes in HKLM)

Here's the situation, (and this is just to illustrate):

Kix Code: (test.kix)
 Code:
BREAK on
If Exist("C:\test.bat")
 ? "C:\test.bat found"
Else 
 ? "C:\Test.bat not found"
EndIf

Run '%COMSPEC% c:\test.bat'
? "DEBUG: " + @ERROR + " - " + @SERROR
get $x


If I run this on the workstation itself: kix32.exe c:\test.kix.
I get the correct result, and test.bat is executed.

However, I run this same script through psexec:
psexec -i \\<workstation> -u <username> -p <password> c:\windows\system32\kix32.exe c:\test.kix

I get the following:
C:\Test.bat found
DEBUG: 2 - The system cannot find the file specified.

This has always worked, until now... I have tried removing the username and password, and running psexec with the -e argument to not load current user profile. Nothing worked. The user on the workstation is a local admin, so I know they have read access to the file.

Also, I found one thing that was curious in the Application Log:
Event Type: Error
Event Source: KIXTART
Event Category: None
Event ID: 1312
Date: 5/25/2010
Time: 1:14:01 PM
User: N/A
Computer: AERIESCS-SB-001
Description:
The description for Event ID ( 1312 ) in Source ( KIXTART ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: WkstaUserGetInfo failed Error : A specified logon session does not exist. It may already have been terminated. (0x520/1312).

Would anyone have any pointers as to what to look for at this point? I'm pretty stumped.

Thanks for any assistance you may be able to provide!

_________________________
Network Specialist
Chino Unified School District