Batch File for Firing Up AX 2012

By Eric Newell | November 5, 2012

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.

@echo off 
net start mssqlserver 
timeout 3 
net start sqlserveragent 
timeout 3 
net start reportserver 
timeout 3 
net start AOS60$01 
timeout 15 
start ax32

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

Recommended Reading:

Managing Your Business Through Uncertain Times Using Dynamics 365 Finance and Operations

  Dynamics 365 Finance and Operations (F&O) can help you make informed decisions on how to move your business forward. […]

Read the Article
5.13.22 Power Platform

Using Power BI Object Level Security

  The following article will demonstrate how to use Power BI Object Level Security to disable column data based on […]

Read the Article
5.12.22 Dynamics CRM

How to Use the Stoneridge Support Portal

Stoneridge Software’s support portal is an intuitive and useful function that makes it easy for you to access resources to […]

Read the Article
5.6.22 Dynamics GP

Dynamics GP Transaction Removal: Purchase Orders

  Are you having performance issues with Purchase Orders?  Do you find that there are old Purchase Orders on your […]

Read the Article
5.5.22 Dynamics GP

The Real Story about the Long-Term Future of Dynamics GP Support

I’ve seen a number of people put forward comment that Dynamics GP is going away and you have to get […]

Read the Article

New Features in Dynamics 365 Business Central 2022 Wave 1 Release – Financial Enhancements

The Dynamics 365 Businses Central 2022 Wave 1 Release has a lot of new and exciting features to help your […]

Read the Article
4.29.22 Dynamics GP

Dynamics GP Transaction Removals: Bank Reconciliation

  This is part 2 of a 3 part series on Dynamics GP Transaction Removals. These quick tips will hopefully […]

Read the Article
4.28.22 Dynamics GP

Uncommonly Used Features – Integrate Purchasing and Payables to Fixed Assets in Dynamics GP

Being able to integrate Purchasing and Payables to Fixed Assets in Dynamics GP will help you create visibility for your […]

Read the Article

New Features in the Dynamics 365 Business Central 2022 Wave 1 Release – Ease-of-Use Features

  There are many new features in the Dynamics 365 Business Central 2022 Wave 1 Release to get excited about! […]

Read the Article

Start the Conversation

It’s our mission to help clients win. We’d love to talk to you about the right business solutions to help you achieve your goals.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X