G
Gunnar_Frenzel
Hello,
I have two WinXP systems both running in a virtual machine. I want to
start a batch file file on Machine1 started by a psexec call from
Machine2.
The command is:
psexec \\machine1 -u User -p Password -i -w "C:\Batch_Files" "C:
\Batch_Files\Task.bat"
Which is working properly when Machine1 is fresh rebooted. As soon as
a user has logged on to Machine1 using Remote Desktop Connection the
command returns "Invalid parameter" when I remove the -i parameter
only it is working properly so this parameter seem to cause the
problem. The problem occurs when no user is logged in to Machine1
anymore, too. So as long as no user has ever connected to Machine1 via
Remote Desktop after reboot everything works fine and after the first
Log In/Log off the invalid parameter error occurs.
Can anyone tell me how to solve this problem? The problem is that the
batch file on Machine1 is calling a Powershell Skript which hangs when
the batch is not started with -i in psexec call.
Best regards,
Gunnar
I have two WinXP systems both running in a virtual machine. I want to
start a batch file file on Machine1 started by a psexec call from
Machine2.
The command is:
psexec \\machine1 -u User -p Password -i -w "C:\Batch_Files" "C:
\Batch_Files\Task.bat"
Which is working properly when Machine1 is fresh rebooted. As soon as
a user has logged on to Machine1 using Remote Desktop Connection the
command returns "Invalid parameter" when I remove the -i parameter
only it is working properly so this parameter seem to cause the
problem. The problem occurs when no user is logged in to Machine1
anymore, too. So as long as no user has ever connected to Machine1 via
Remote Desktop after reboot everything works fine and after the first
Log In/Log off the invalid parameter error occurs.
Can anyone tell me how to solve this problem? The problem is that the
batch file on Machine1 is calling a Powershell Skript which hangs when
the batch is not started with -i in psexec call.
Best regards,
Gunnar