Ad Widget

Collapse

[Remote command Windows] to run in particular session

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zaicnupagadi
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2010
    • 73

    #1

    [Remote command Windows] to run in particular session

    Hi there,

    Got this problem, I have an application that needs to be run when it appears to be off. The problem is it has to run in a particular session - it is some kind of advertisement panel that is exposed on the hallway of our company.

    I have finally find the command that works for me:

    c:\psexec.exe \\COMPUTERNAME -i -u doman.com\user -p password c:\windows\notepad.exe

    It works when I run it from remote host, but as I run it from the zabbix like:

    COMPUTERNAME:c:\psexec.exe \\COMPUTERNAME -i -u doman.com\user -p password c:\windows\notepad.exe

    it won't work. Simply nothing is being done. I have tried to run it also from bat and vbs and as run from vbs it gives me that "plum" error sound on remote host, but still nothing is being done. In the log file I only see that command has been run.

    Does anyone else has been trying such a thing?

    Really appreciate for help guys!
  • zaicnupagadi
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2010
    • 73

    #2
    Ok the problem partly resolved - I had to set up the user on which the zabbix service is running. The next problem is that I have to that thing on windows 7 (tests was on XP) and now I have hit the wall because of the UAC and Interactive Services Detection - program won't run because of that, no I'm struggling with that..

    Comment

    • zaicnupagadi
      Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2010
      • 73

      #3
      Hey, problem resolved, so I was thinking I will just write the solution if anybody has the same problem.

      The main thing is - I was doing tests on windows XP and then on windows 7, but the production environment, as it has appeared was... vista business

      The difference betwen XP and 7 is that to run process in "first" session in XP we use in psexec "-i 0" parameter and in 7 "-i 1", the next issue was the permission thing, in w7 I was able to run that application usng psexec just in the zabbix command, in Vista, despite turning UAC off, I was unable to run that, so I tried to use a script that run psexec locally on the remote machine and it works fine that way.

      Have a nice evening everybody!
      Pawel

      Comment

      Working...