Batch File for Firing Up AX 2012

by | Updated May 5, 2015 | Dynamics AX, SQL

I use my laptop for many things – actually, scratch that, I use it for everything.  Because of this, I load everything possible onto my laptop – media editing software, Visual Studio, all the Office tools (including Project, Visio, SharePoint Designer and Workspace) and, of course, I loaded SQL so I could load Dynamics AX 2012.

I have a Sony VAIO Z Series laptop, which is easily the lightest and best laptop I’ve ever owned, and it’s been perfoming great, but I was noticing it was starting to get warm and the hard drive light was on more than necessary.  When I looked at the Resource Monitor I noticed AX, SQL and SQL Reporting Services were taking up about 1 GB of my 8 GB of memory.  They weren’t consuming much in the way of processor time, but I thought, if I don’t need them running all the time (which I don’t), why not shut them down and create a batch file to kick off AX when I need it.

I changed my services settings to set SQL, SQL Agent, SQL Reporting Services and AX to manual so they wouldn’t have to boot up right away (this saved me a few seconds on boot-up too).  Now my laptop is cooler than before and the battery life is better, and if I need to launch AX, I’m only 40 seconds away from it starting, thanks to this batch file.

I saved that text as a file called StartAX.bat and placed it in my main document folder.  I then created a shortcut file on my desk to that batch file so I could have it run with admin privileges by default.  To do this, click the “Advanced” properties under the shortcut file to have it run with elevated privileges.  I also renamed it to “Start AX” so it’s pretty easy to see what I need to do on my desktop.

I also created a batch file to stop all the services, and it only has one line – net stop mssqlserver /y – that will shut down all associated services.

As I was trying to put this together I noticed the commands for SQL had changed from previous versions, and I didn’t realize at first that AX would launch just by typing the ax32 command.  I hope this helps you to be able to run AX on your laptop without having to overheat your machine when you’re not using it.

Eric Newell

Related Posts

  • If you want to take advantage of the new capabilities in Microsoft SQL Server 2012, you're going to have to do some extra work to get Microsoft Dynamics AX 2012…

  • In Dynamics AX 2012, there are times when batch jobs appear to be stranded in a waiting status.  When this happens, the cause can typically be a batch server or batch group…

  • Batch transfer rules in Dynamics AX 2012 is a new framework giving you the ability to control the timing of when a document posts to the ledger. These rules determine…


Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events


01jul11:00 am12:00 pmConfab Live with Stoneridge – Dataverse Virtual Entities

14jul12:00 pm12:30 pmBeyond Reporting - What Business Intelligence Can Do For Your Agribusiness

15jul10:00 am11:00 amMastering the Production Floor

21jul10:00 am10:30 amThe Modern Manufacturer: Manufacturing Software in the Real World

21jul12:00 pm1:00 pmIs it Worth it to Upgrade to Dynamics 365 Finance and Supply Chain Management? - Everything AX Users Need to Consider

28jul10:00 am10:30 amLot Management for Batch Manufacturers in Life Sciences, Chemical and Food

28jul2:00 pm2:30 pmConsiderations for Successful Testing Plans for Major Releases of Dynamics 365 Finance and Supply Chain Management

29jul11:00 am12:00 pmConfab Live with Stoneridge – Integration Strategies for End User Success


04aug2:00 pm2:30 pmSimplifying Payroll and HR Management with ADP Workforce Now

10aug(aug 10)8:00 am11(aug 11)11:00 amPower BI for Dynamics 365 - Online Workshop

11aug10:00 am10:30 amThe Modern Manufacturer - Enterprise Asset Management

11aug12:00 pm12:30 pmBusiness Intelligence with Dynamics 365 Finance and Supply Chain Management – Game Changing Insights and Analytics

11aug2:00 pm2:30 pmUsing Technology to Manage Complex Sales Pricing, Commission, and Rebate Programs

18aug10:00 am11:00 amTop Five Reasons Why NOW is the Right Time to Move from Salesforce to Dynamics 365 Customer Engagement

18aug10:00 am12:00 pmIntro to Power BI for Dynamics 365 Business Central – Online Workshop

18aug12:00 pm1:00 pmSolving the Biggest Challenges in Agribusiness Through Innovation and Technology

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!