Consider the following scenario:
You have a computer that is running Windows 8.1 or Windows Server 2012 R2.
You use the REAgentC.exe tool to disable the WinRE environment.
In this scenario, the REAgentC.exe tool always returns 0, even if an error occurs.
To resolve this issue for Windows 8.1 and Windows Server 2012 R2, install update rollup 2919355.
Update information for Windows 8.1 and Windows Server 2012 R2
For more information about how to obtain update 2919355, click the following article number to view the article in the Microsoft Knowledge Base:
2919355 Windows RT 8.1, Windows 8.1, and Windows Server 2012 R2 Update April, 2014
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates