This blog is dedicated to Ms Exchange 2007 , Active Directory , MSCS Services articles and demos , Its all about Microsoft Exchange 2007 .

16th
DEC

Exchange 2007 Mail Submission Service Fail to Start after SP2 Installation

Posted by under Exchange Management Console, Exchange Management Shell

Exchange 2007 Mail Submission Service Fail to Start after SP2 Installation

Cluster Type : Single Copy Cluster
Action : Installation of Exchange 2007 SP 2
Issue   : Mail Submission Service Fail to start
Error : Error 1053: The service did not respond to the start or control request in a timely fashion

Resolve

Increase the service timeout period

The Service Control Manager will generate an event if a service does not respond within the defined timeout period (the default timeout period is 30000 milliseconds). To resolve this problem, use the Registry Editor to change the default timeout value for all services.

To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.

Caution: Incorrectly editing the registry may severely damage your system. Before making changes to the registry, you should back up any valued data.

To change the service timeout period:

  1. Click the Start button, then click Run, type regedit, and click OK.
  2. In the Registry Editor, click the registry subkey HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control.
  3. In the details pane, locate the ServicesPipeTimeout entry, right-click that entry and then select Modify.Note: If the ServicesPipeTimeout entry does not exist, you must create it by selecting New on the Edit menu, followed by the DWORD Value, then typing ServicesPipeTimeout, and clicking Enter.
  4. Click Decimal, enter the new timeout value in milliseconds, and then click OK.
  5. Restart the computer.

2nd
NOV

How to Export Members of Distribution Group in Text File

Posted by Nausherwan under Exchange Management Shell

Open Exchange Management Shell

Write this command.

Get-DistributionGroupMember “DL Name”>D:\Filename.txt

15th
OCT

Block Users from Sending Emails outside Organization

Posted by Usman under Exchange Management Console

How To Block Users from Sending Emails outside Organization !

A common requirement is to block users from sending emails outside exchange organization !

Open  Exchange Management Console

Organization Configuration
—–> Click on  Hub Transport
—–> Click on  Transport Rules (in Middle Pane)

Right Click and New Transport Rule

Enter Name  As   ” Block External Emails ”
Click ” Enable Rule ”

Click Next

Step 1

Checked –>  from a member of Distribution list

Checked –>  Sent to Users inside or outside the organization

Step 2

Click on Distribution list and Select the Distribution Group which is not allowed to send email outside the organization.

Click on Inside and change the scope to Outside

Click Next

Actions
Step 1

Checked –> Silently drop the message.

Click Next

Click New !

20th
AUG

Send On Behalf Of Another User In Exchange 2007

Posted by Nausherwan under Exchange Management Console, Exchange Management Shell

If user A wants to send an email on the behalf of user B using his own mailbox. We have to grant permission on the mailbox of user B through Exchange Management Console.

Right click on the user mailbox and go to the properties

Click on the tab of “Mail Flow Settings” and than click on “Delivery Options”

Under the heading “Grant this permission to” click on Add button and add the user A

Click ok and close the mailbox properties.

To verify the send on behalf of permission on user account, use EMS and give the command

Get-Mailbox -Identity MailboxName | fl

Settings for Outlook 2007

Open outlook 2007 and compose a new message

Go to Options and select “Show From” field

Put that user in From field to whom you want to send on behalf of from your mailbox

10th
AUG

Send on Behalf of Distribution Group in Exchange 2007

Posted by Nausherwan under Exchange Management Shell

We can grant “Send on Behalf of  Distribution Group” permissions using Power Shell as follows.

Set-DistributionGroup -Identity DistributionGroupName -GrantSendOnBehalfTo Username1,Username2

Settings for Outlook 2007

Open outlook 2007 and compose a new message

Go to Options and select “Show From” field

Put that Distribution Group in From field to whom you want to send on behalf of from your mailbox

9th
JUL

How to Remove Registry Key Using Batch File

Posted by Usman under Active Directory

You can use the following syntax to remove any registry key using batch file.

1- Create a New Text File in NotePad and Save as  “File.bat”

2- Open File.Bat in NotePad and put following syntax

REG DELETE “HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\ePolicy Orchestrator\Agent” /v “AgentGUID” /f

You can use your own registry key path !

/f switch will delete key without prompting Yes/No !

9th

How to add Exceptions in Windows Firewall Using GPO

Posted by Usman under Active Directory

You can use this group policy to open specific ports on windows firewall using GPO

1- Open Active Directory Users and Computers
2- Right Click on Domain Name or OU on which you want to apply this firewall Exceptions
3- Click Group Policy Tab, Click on Policy name and Click Edit !
4- Expand Computer Configuration –> Administrative Templates –>Network –> Network Connections  –>Windows Firewall –> Domain Profile
5-  Click Windows Firewall: Define Port Exceptions , Click Enable
6- Click On show , Click on ADD

You have to write syntax like this

Port:Transport:Subnet:Status:Name

Port: Port is Port Number like 80 or 8080
Transport: TCP or UDP
Subnet: Networks
Status: Enabled or Disabled
Name: Name of Exception

Example

8080:TCP:192.168.0.1/16:enabled:HTTP Access

7th
JUL

How to export Message tracking Logs in CSV format in Exchange 2007

Posted by Nausherwan under Exchange Management Shell

Open Exchangem Management Shell.

Type the command.

Get-MessageTrackinglog -Server “Servername” -EventID “RECEIVE” -Start “7/7/2009 9:00:00 AM” -End “7/7/2009 5:16:00 PM” -ResultSize Unlimited | export-csv c:\Filename.csv

12th
MAY

Software Restriction through Group Policies

Posted by Nausherwan under Active Directory

If we want to restrict any software for usage through group policy.

1. Go to particular OU and right click on it and go into the Group policy properties.

2. Go to user configuration and click on Windows Settings —> Security Settings —->Software Restrictions.

3. In enforcement tab, we have to check all software files and All users except Local Administrator.

4. We have to define new path rule based policy.

5. Path will include that software installation path which you want to block. For e.g C:\Program Files\Microsoft Office. (What ever the software you want to block).

6. Close the Group policy console.

16th
APR

Exchange Server Remote Connectivity Analyzer

Posted by Usman under Uncategorized

Hey Guys,

Now You can test your exchange server online using the following website.

https://www.testexchangeconnectivity.com/

You can run the following tests.

Microsoft Exchange ActiveSync Test
This test will simulate the steps a mobile device uses to connect to an Exchange Server using Exchange ActiveSync.
Microsoft Exchange ActiveSync AutoDiscover Test
This test will walk through the steps a mobile device uses to connect to the AutoDiscover Service
Microsoft Office Outlook 2007 Autodiscover Connectivity Test
This test will walk through the steps Microsoft Office Outlook 2007 uses to connect to Autodiscover
Microsoft Office Outlook 2003 RPC/HTTP Connectivity Test
This test will walk through the steps Microsoft Office Outlook 2003 uses to connect via RPC/HTTP
Inbound SMTP Email Test
This test will walk through the steps an Internet e-mail server uses to send inbound SMTP email to your domain