Remove Production Status

Is there a way to Remove Production Status from a environment without using the EAC? I have a PowerShell Script that can almost take do a complete Restore from Live to Pilot or Test - Stop Task Agent, Stop App Servers, BU Live - Copy Only, Restore Environment (entered earlier), Alters DB Recovery Model and Log Size, Perform some SQL Truncation, Starts App Servers, Start Task Agent. All separate functions in PS modules called in a PS menu I setup to either do one of these functions or the entire restore. I have one more PS module with calls to Epicor Functions that Update Company Maintenance and Configuration, Updates Attachment Maintenance, and Removes Scheduled Reports and Functions but I also have built into these Functions a condition that if the Environment is in Production Status to Stop, I do not want these Functions running against Production and wipe away or change anything in Live. Right now It goes up to restarting the Task Agent, then I manually go into EAC and Remove Production Status from the restored environment and then call the series of Epicor Functions from the PS Menu.

Thanks.

1 Like

You might try the ClientFunctionsSvc:

That’s the ticket, works like a charm. Thank you kindly.