title: Dynamics AX 2012 RegConfig does not work
body: <p>I'm currently developping a failover service for an environment using Dynamics AX and 2 mirrored SQL servers, and I have some issues getting AX to work the way I expect it to.</p>
  
  <p>I have developped a service which does the following :
  - try to connect to the SQL servers instances
  - start Dynamics AX using the reachable SQL server.</p>
  
  <p>To do this, I have created 2 AX configuration files (.axc), each one pointing to a SQL server.</p>
  
  <p>But when I try to start the service, no mater which way I use, AX always start using the configuration that is set using the AX server configuration tool.</p>
  
  <p>Here are the command I've tried to start the AX service : </p>
  
  <pre><code>sc start AOS60$01 -regConfig=Config1
  net start AOS60$01 /"-regConfig=Config1"
  </code></pre>
  
  <p>The service always start successfully, but doesn't care about the regConfig parameter.</p>
  
  <p>As anybody an idea about how to solve this issue?</p>
  
  <p>Regards,</p>
  
  <p>Thomas T.</p>