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…

0 Comments

Submit a Comment

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

Upcoming Events

august

12aug10:00 am10:30 amWhy Levridge Grain? How to Achieve Efficient and Accurate Scale Tickets

12aug12:00 pm1:00 pmThe Three Paths to Dynamics 365 Finance and Supply Chain from Dynamics AX

13aug11:00 am12:00 pmConfab with Stoneridge - Livestream - Inspire Keynote Breakdown

19aug10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

19aug12:00 pm12:30 pmThe Modern Manufacturer - Death by Safety Stock

27aug12:00 pm1:00 pmConfab with Stoneridge - Livestream - Dynamics 365 2020 Wave 2 Preview

september

02sep10:00 am10:30 amThe Modern Manufacturer - Cycle Count Management

09sep10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

16sep10:00 am10:30 amThe Modern Manufacturer - Product Lifecycle Management

30sep10:00 am10:30 amThe Modern Manufacturer - Return Management

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!

X