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

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