![]() |
![]() |
|
|
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 |
![]() |
|
|
#1 | ||
|
Guest
Posts: n/a
|
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 |
||
|
|
|
#2 | ||
|
Guest
Posts: n/a
|
Gunnar_Frenzel@web.de wrote in news:26354cde-1d3f-4db5-bcdd-f470e38887e9
@y18g2000yqn.googlegroups.com: > 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. Do you need -i? I'm guessing the problem is that -i assumes running the process in the console session and the console session is locked when you RDP into Windows XP. Adam |
||
|
| Sponsored Links |
|
|
#3 | ||
|
Guest
Posts: n/a
|
On 4 Dez., 16:13, Adam Leinss <alei...@hotmail.com> wrote:
> Do you need -i? *I'm guessing the problem is that -i assumes running the > process in the console session and the console session is locked when you > RDP into Windows XP. Yes I need the parameter. When calling the psece commands no user is logged on the target machine. So there's no RDP connection while trying to use psexec. It looks like creating a RDP connection even if its terminated then via Log Off somehow mess up the system to prevent later psexec -i calls from working. |
||
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cant use psexec to access WinXP? | Patrick | Windows XP | 7 | 08-01-2008 06:53 AM |
| psexec | joey | Windows 2003 Server | 3 | 05-28-2008 01:07 AM |
| psexec help | pete0085 | Windows 2003 Server | 3 | 05-09-2008 04:36 PM |
| Need something like PSEXEC but does not need password. | Jordan | Windows XP | 3 | 04-10-2008 12:32 PM |
| Windows Service Parameter problem in WinXP | NewsBot | Microsoft News | 0 | 01-04-2008 09:38 PM |