Stop=Provtask Error: "Unable to stop-task <taskID> on host XX as it is running on YY
book
Article ID: CTX270733
calendar_today
Updated On:
Description
Cannot stop active provtask. Error: "Unable to stop-task <taskID> on host <hostname> as it is running on <host2name>, please use -AdminAddress <host2name> to stop this task."
Resolution
Move all Machine Creation Service tasks from the current execution host to the host running the task using the command below:
Switch-ProvTask -Host <Host2> note: Host2 is the host where the error says the task is running When finished, should prompt: Success
Then end ProvTask with below command:
Stop-ProvTask -TaskId <Id>
Problem Cause
ProvTask is being executed on different host from the local host where is tried to be terminated. The host executing the task is the AdminAddress.