Monday, April 19, 2010

Batch file for restarting iis and Asynch service

while developing custom components for MSCRM many times we need to restart IIS and Asynch service, here are handy batch commands
save these to a file with .bat extension and just execute the file when needed


@echo off

echo Restarting IIS...
iisreset
echo IIS Restarted

echo Restarting Microsoft CRM Asynchronous Processing Service...
net stop "Microsoft CRM Asynchronous Processing Service"
net start "Microsoft CRM Asynchronous Processing Service"
echo Microsoft CRM Asynchronous Processing Service restarted !!

or incase of custom workflow development
you can add this command to Pre-Build event commands(this is recomended for single user development server) and give output path directly to assembly\bin folder of MSCRM













From Another .net blog


and






From Another .net blog