Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

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.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.