Exchange with Active Directory takes forever to shutdown!!

Posted by on May 28, 2009 in Server 2003 |

Yep, i too have experienced this problem (grr microsoft)..

They do have a KB atricle for this: http://support.microsoft.com/kb/829361

Cause:

This issue may occur when the following conditions are true:

  • The Microsoft Active Directory directory service closes before Exchange 2003 services are fully stopped during the computer shut down process.
  • Exchange 2003 is installed on a domain controller computer that is also a global catalog server.
  • No other domain controller or global catalog server is available in the forest.

Active Directory shuts down before Exchange 2003 services are fully stopped during the computer shut down process. When this issue occurs, the Exchange DSACCESS component may continue to try to contact the Active Directory and wait for a response.

Workaround:

To make a Windows Server 2003 domain controller computer that has Exchange 2003 installed shut down faster, manually stop the Exchange 2003 services before you shut down Windows.

OK, so i have just put together a small batch script to stop the services:

    net stop MSExchangeES
    net stop IMAP4Svc
    net stop POP3Svc
    net stop RESvc
    net stop MSExchangeSRS
    net stop MSExchangeMGMT
    net stop MSExchangeMTA
    net stop MSExchangeIS   /Y
    net stop MSExchangeSA   /Y

Run this batch script and then shutdown your server – check how fast it shuts down now!

Read More

Want to have a look at CRM 5??

Posted by on May 28, 2009 in General |

CRM5 is currently on schedule to ship as part of the Office14 Wave (most likely sometime in 2010), and the team is only part way through the development cycle, having just completed Milestone 1 (M1). Even so, there is already much to get excited about. Here is a list of “features” that were discussed:

New Features For End Users

  • Enhanced Navigation – I guess it was inevitable, but CRM5 uses the same “Fluent UI” (aka the Ribbon) as Office 2007. This new “command bar” replaces the CRM 4.0 “tool bars” at the top of each page, and is context sensitive. In addition, the “command bar” is fully customizable and you can add your own buttons much like you can with ISV.Config file today.CRM5 Ribbon (Account)

    CRM5 Ribbon (Contact)

    Incidentally, something that isn’t discussed but appears on the ribbon is the “Add to Queue” command, from which I can only surmise that you will be add any entity (including custom entities) to a Queue.

  • Single Page Forms – The form model in CRM 4.0 made use of tabs to divide a form into multiple pages. In CRM5 tabs are displayed in the same way as section, with each form just having a single, scrolling page. As you can see from the navigation page of an Account entity, tabs are now displayed as a series of “quick access” navigation shortcuts under the “Information” link.CRM5 Tabs
  • Data Filtering – One often requested feature is the ability to filter data in grids, much like Excel. Now you can navigate to the “DataView”, click the “Filter” command, and you can perform your own in-line filtering.CRM5 Data Filtering

    Again, although not explicitly stated, it looks as though you can quickly save your filters as a View, as well as setting your own Default View.

  • In-line Visualizations – Although not Business Intelligence in the true sense of the phrase, CRM5 allows you to visualize numeric data using in-line charts. This is not SQL Server Reporting Services, but looks very much like the .NET charting solution from Dundas.CRM5 In-Line Visualizations

    The charts themselves are drill-through enabled and you can select a number of different chart formats such as Bar, Column, Funnel, Line, Pie & Scatter.

  • Team Ownership – Entities in CRM 4.0 were either User Owned or Organisation Owned. Now Team Owned entities are added in CRM5, and integrated into the role-based security model.
  • Native SharePoint Integration – Integration with Windows SharePoint Services for document management, which includes site and document library provisioning, document metadata, item security, and check-in/check-out capabilities.
  • Unstructured Relationships – The next generation of “set regarding” and “relationship roles” functionality, allowing you to define ad-hoc relationships between any two entities.

More info can be found here: http://blogs.msdn.com/ukcrm/archive/2008/11/10/what-s-new-in-crm5.aspx

Read More

Send an Email from a Distribution Group – Exchange 2003

Posted by on May 28, 2009 in CRM 4.0 |

Hi All,

Today i had the wonderful pleasure of trying to figure out how to send an email from a email distribution group (active directory group).

The distribution group is ‘Support (support@xxxxxxx.com.au)’ which recieved all support emails. The user wanted to send & reply to emails from the support email address.

I had actually tried to send from this distribution group in outlook – using the From field and boom it worked – too bad it never worked for the other users (turns out i’m an exchange admin and can do whatever i want).

So the user got this error:

Your message did not reach some or all of the intended recipients.

      Subject: 

      Sent:     27/05/2009 2:25 PM

The following recipient(s) cannot be reached:

      Ibrahim Sukari on 27/05/2009 2:25 PM

            You do not have permission to send to this recipient.  For assistance, contact your system administrator.

            MSEXCH:MSExchangeIS:/DC=local/DC=mydomain:exchserv01

After literally 1 hour of searching, i managed to figure out that in the Active Directory MMC view (below), there is an option call ‘Advanced Features’ which apparently gives you the security options needed on a distribution group.

Steps needed to enable user to send an email from a distribution group:

  1. Enable ‘Advance Features’ view from the MMC console – Click on View > Advanced Features
  2. Find the distribution group in question, go to properties > security tab > add the user wanting to send the email > give the user permission to send AS or give full control.
  3.  Enable the ‘From’ field in outlook (i am using Outlook 2007) – Click on the ‘options’ menu > click on ‘Show From’
  4. Click on ‘From’ – then choose the distribution group (mine is Support)
  5. Send the email – check the other email account.

That’s It for now, any comments and suggestions are welcome.

-Ibrahim Sukari

Read More

Call/Request a workflow in CRM 4.0 using Javascript

Posted by on May 25, 2009 in CRM 4.0, Customizations, JavaScript |

  1. Add a button on Form’s Toolbar/Grid’s Menu Bar for the entity in ISV config file (export ISV config)
  2. Call launchOnDemandWorkflowForm (for button on Form) or launchOnDemandWorkflow (for button on grid) functions and pass the parameters sGrid, iObjType and workflowId.
  3. Save the config file and import it to CRM.

An example of this could be:

<Entity name="account">
<ToolBar ValidForCreate="0" ValidForUpdate="1">
<Button Icon="/_imgs/mybutton.jpg" JavaScript="launchOnDemandWorkflowForm('', '10029','{00000000-0000-0000-0000-000000-00000}');" PassParams="1" WinParams="" WinMode="0">
<Titles>
<Title LCID="1033" Text="Send Email" />
</Titles>
<ToolTips>
<ToolTip LCID="1033" Text="Send Welcome Email" />
</ToolTips>
</Button>
</Entity>

Or you can alternatively request it from the web service:

/* the function */
ExecuteWorkflow = function(entityId, workflowId)
{
var xml = "" +
"<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
GenerateAuthenticationHeader() +
" <soap:Body>" +
" <Execute xmlns=\"http://schemas.microsoft.com/crm/2007/WebServices\">" +
" <Request xsi:type=\"ExecuteWorkflowRequest\">" +
" <EntityId>" + entityId + "</EntityId>" +
" <WorkflowId>" + workflowId + "</WorkflowId>" +
" </Request>" +
" </Execute>" +
" </soap:Body>" +
"</soap:Envelope>" +
"";
var xmlHttpRequest = new ActiveXObject("Msxml2.XMLHTTP");
xmlHttpRequest.Open("POST", "/mscrmservices/2007/CrmService.asmx", false);
xmlHttpRequest.setRequestHeader("SOAPAction","http://schemas.microsoft.com/crm/2007/WebServices/Execute");
xmlHttpRequest.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
xmlHttpRequest.setRequestHeader("Content-Length", xml.length);
xmlHttpRequest.send(xml);
var resultXml = xmlHttpRequest.responseXML;
return(resultXml.xml);
}

// call the workflow
var theWorkflowId = "3FD2DD58-4708-43D7-A21B-F0F90A0AA9F2"; //change to your workflow Id
ExecuteWorkflow(crmForm.ObjectId, theWorkflowId);

Read More

Find/Retrieve/Get CRM 4.0 CD Key

Posted by on May 25, 2009 in CRM 4.0, Licensing |

Hello all,

For those wondering on how to find/retrieve/get your current CRM 4.0 CD key, you will have to query the MSCRM_CONFIG database.

SELECT LicenseKey FROM ConfigSettings

If you have the media (assuming it’s ordered using Volume licensing or using the SPLA media), you can look under DRIVE:\AMD 64 or I386\license.txt

Read More
%d bloggers like this: