# PSexec -i &#91;Session ID&#93;

**URL:** <https://www.finalbuilder.com/forums/t/psexec-i-91-session-id-93/4673>\
**Category:** Bugs\
**Created:** [May 6, 2010, 8:02am UTC](https://www.finalbuilder.com/forums/t/psexec-i-91-session-id-93/4673 "2010-05-06T08:02:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [May 6, 2010, 8:02am UTC](https://www.finalbuilder.com/forums/t/psexec-i-91-session-id-93/4673/1 "2010-05-06T08:02:15Z")

</div>

I try to use the PSexec action under the group PsTools.   
 I want tu use the -i parameter on the Process Options Tab, but i Can’t specify the session ID number just after the -i paramater.   
  
 “Program interacts with remote computer’s desktop screen (-i)”   
  
 This cause PSEXEC not to work properly   
 The PSexec help show that the -i parameter may need a session id number   
 PSexec [-i [Session ID]]   
  
 BY default -i alone generate the error.   
  
 How can we add the Session number to be just after the -i parameter ?   
  
 Here is a working example of PSExec with a number after -i :   
 psexec \MyServer -u MyDomain\MyUserName -p “_PASSWORD_” -i 0 cmd /c dir   
  
  
 --------------------------------------   
 Log of Automise :   
  
 Command line : psexec \MyServer -u MyDomain\MyUserName -p “_PASSWORD_” -i cmd /c dir   
 PsExec v1.98 - Execute processes remotely   
 PsExec could not start cmd on bd-dev6:   
 Return code : 87   
 Action Failed.
