Showing posts with label PowerShell. Show all posts
Showing posts with label PowerShell. Show all posts

Monday, March 19, 2018

How to perform Silent installation of Dynamics AX Client

I believe that silent installations are best in the long run;

Basically whenever you have a .msi file (Microsoft installer), you have the privilege to see the options available by use /? parameter. 

sampleinstaller.msi /?

I have used the same help command and execute the below steps one after the other in order to install Dynamics AX Client in Silent mode. Of course, once you get this far, you can always script it in better way... 


// Copy of files from FileShare to Local folder

xcopy "\\SHARE\AX2012 R3 RTM + CU8" D:\ /E /H

//Silent install - MSChart

"D:\AX2012 R3 RTM + CU8\MSChart.exe" /q /norestart

//Silent install - SQLSysClrTypes2012

"D:\AX2012 R3 RTM + CU8\SQLSysClrTypes2012.msi" /quiet

//Silent install - Report viewer 

"D:\AX2012 R3 RTM + CU8\ReportViewer2012.exe" /q:a /c:"install.exe /q"

//And Finally Silent Install - Dynamics AX client component


"D:\AX2012 R3 RTM + CU8\setup.exe" RunMode=Custom AcceptLicenseTerms=1 HideUi=1 ByPassWarnings=1 InstallClientUi=1 ClientConfigFile="D:\AX2012 R3 RTM + CU8\UAT.axc" ClientLanguage=en-us ConfigurePreRequisites=1 LogDir="D:\logs"



Hope this helps. Happy coding!

Wednesday, March 8, 2017

How to kill tasks on your machine

Sometimes only way to get out a stuck screen is to kill an on going process, if it has been executing for long, say, for example the "Application object server" is in "Starting" state for a pretty long time and you can not take any action from within the Services window. 

Always good to rely on the Windows Task manager (Right click on taskbar > Task manager) and under Services tab you can find the details of all the services available in the system. You can explore more around Processes and Details tab for further actions. 



And if Task manager is not able to help you in your situation. You can always rely on the good old command taskkill using the pid of the process to identify the correct service/process. 

Open command prompt (Run as Administrator)
taskkill /f /pid 4224


Happy coding!