Jump to content

Execute Powershell on Windows Server (a) in schedules (b) triggered from client


This topic is 3241 days old. Please don't post here. Open a new topic instead.

Recommended Posts

1. Is there any way to enable Powershell scripts to be directly selected as system scripts on FMS schedules?  I can only select CMD scripts, which can indirectly start Powershell.

2. Is there a way to start Powershell scripts (on FM Server) triggered from the client?  (Better than running a schedule like in [1] every x minutes .... ).

~Jens

Edited by jteich
Link to comment
Share on other sites

1 - no, unfortunately.

2 -  you can have a normal FMS schedule that runs every minute on the server, clients create a new "request" record in a specific table, the server-side schedule picks up on it and uses the free BaseElements plugin to run the fmsadmin command line to run the target schedule.  Then the request record gets deleted.

All in all not real-time but very close to it.

Alternatively you can also use the psexec tool if your clients are all windows to run a command directly on the server.  But that is not secure at all since it can be hijacked to do other things (and it requires all your users to have the necessary privileges on the server OS.... very dangerous.

Link to comment
Share on other sites

This topic is 3241 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.