node prep task not able to start a service RRS feed

  • Question

  • I have created a node prep task to start a service before a job runs. However it is only successful if the user running it is an admin on the machine. Is there a way to set the node prep task to run as different/elevated user without having to do a powershell start-process and using the -credential option?

    Basically all that I am running now as the nodeprep task is

    powershell -command "start-service <servicename"

    And that is failing with any other user account besides an admin account


    Thursday, June 4, 2015 4:04 PM

All replies

  • using an admin account should do the work I suppose.

    It is designed this way as the pre/release task is provided by job user. There will be security concerns to have job user to be able to have system privileges on compute nodes.

    In order to achieve your scenario, admin can put some monitoring process on every compute nodes to monitor job user request and do the work on behalf of users (For example, the job user write a file with the service name in a folder, and admin create a windows scheduled task to run routinely to look for the file in the folder and do a start-service then remove the file) 

    Qiufang Shi

    Friday, June 5, 2015 11:10 AM