MS OS - Microsoft Forum to Usenet Gateway Header Right
Navbar Left Navbar Right


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



Reply
Old 12-04-2008, 04:45 AM   #1
Gunnar_Frenzel@web.de
Guest
 
Posts: n/a
Default psexec problem with -i parameter

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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-04-2008, 10:13 AM   #2
Adam Leinss
Guest
 
Posts: n/a
Default Re: psexec problem with -i parameter

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
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 12-05-2008, 04:13 AM   #3
Gunnar_Frenzel@web.de
Guest
 
Posts: n/a
Default Re: psexec problem with -i parameter

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.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

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


All times are GMT -5. The time now is 02:31 PM.


Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Skin designed by CompletevB
Copyright © 2005-2008 Robert Schwarz, Sr. - All rights reserved - MS OS is an independent web site and is not affiliated with Microsoft Corporation.