Jump to content
Arne

Script to control pulseway agent

Recommended Posts

Each client has different implementations of a specific 'action', lets say action A.
I have created batch scripts on each client to handle these implementations, so all clients have a C:\Scripts\StartActionA.bat file.
These actions have to run in an existing user session with GUI, so I have set up a powershell script in Pulseway called StartActionA which contains:

cmd.exe /c 'psexec -i 1 -d "C:\Scripts\StartScriptA.bat"'

Through an agent, (phone or my.pulseway.com) I can run this script for a specific PC, and it works beautifully.
It seems as if the windows-agent doesn't support launching scripts, which is in fact a secondary issue.

My goal is now to have disctinct scripts (can be powershell, batch, ...) that sits on a PC (with an agent installed probably) that instructs pulseway to :
run StartActionA on Client A
run StartActionB on Client A
run StartActionA on Client B
run StartActionB on Client B
...

After this is done, I can hook up an elgato streamdeck to launch these last scripts. That's the final goal.

I've been struggling with the scripts that interface with Pulseway to instruct Pulseway to launch ScriptA on ClientA.
Is this at all possible?

Kind regards,
Arne

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...