I think we need to understand what commands you are actually trying to process in order to determine what is going on. We also need to know which OS the server is running on.
For example, I saw in your comments where you tried "echo test> C: \ test.txt". In Windows Server 2008 (and Windows 7), the root directory requires administrator rights to create files. If this runs on IIS, I assume that your IIS user is not an administrator, and you get security exceptions.
In addition, some teams may require increased privilege due to UAC. I donβt remember exactly, but I assume that if these commands are caught by the UAC, then the process is waiting for the confirmation of the UAC ... Which, I believe, you cannot provide through the command line.
This problem will not be visible if you log in and execute it directly ... if you do not log in with a workflow user account.
So, the very first thing you need to do is find out what exactly you are trying to run, and see if the user performing the workflow can perform these actions. Security protects you, so be careful when giving the user additional rights.
The reason that it can work on one machine compared to another depends on the OS on which these machines work and on the configuration of the user executed by the commands.
If this is really a security issue, as I suspect, then you should send a question to serverfault.com to find out what permission settings you need to run various commands under the workflow user.
You can look at the event logs in the machines to see if there were any warnings or errors that occurred in the command. Sometimes such things may appear there to give you a little more information about what happened.
Notme
source share