Run a Powershell script using bigfix but pass it different creds

So I need to run a powershell script that will stop SQL service before it is patched but need to pass it a service account to use to run the script. How would I go about passing the creds for the script to run under?

also need the same thing. posted the question here - Actionscript - run as domain user

Hi Guys

The workaround I use is to create a scheduled task and run the PS as the user you want… Not ideal, but it gets the job done for me.

This is something that should be implemented, that you can specify the user to run an action.

RFE: https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=82898

Be aware that you can’t use encrypted parameters on a dynamically-targeted Action, but look up the “Change local user password” fixlets for exampls of how to use encrypted parameters.

To run the program as another user, use something like “psexec” and send the username and password in the action.

1 Like