Friday, July 29, 2011

QTP - Webpage Links

Count links in webpage:

Set oDesc = Description.Create()
oDesc("micclass").Value = "Link"
Set
Links = Browser("version:=internet explorer 8").Page("title:=Google").ChildObjects(oDesc)
Msgbox "Total links: " & Links.Count



Get text in links:
For
i=1 to Links.Count-1
 Msgbox Links(i).GetROProperty("text")
Next

Thursday, July 7, 2011

Creating a Cluster in Windows Server 2008

Useful links:

http://blogs.msdn.com/b/clustering/archive/2008/01/18/7151154.aspx

http://www.ditii.com/2009/08/07/building-windows-server-2008-r2-hyper-v-cluster-video/

http://blog.frankovic.net/2010/04/creating-hyper-v-failover-cluster-part-1/

http://www.mssqltips.com/sqlservertip/1687/install-sql-server-2008-on-a-windows-server-2008-cluster-part-1/

http://vimeo.com/4171569

Tuesday, July 5, 2011

Exchange Server 2010 Database Availability Group

Useful links:

http://exchangeserverpro.com/exchange-server-2010-database-availability-group-installation-step-by-step

http://blog.shareef.info/2010/05/25/configuring-the-dag-replication-and-failover-in-exchange-server-2010-part-3/

Friday, July 1, 2011

Configure Exchange 2007/2010 to send external emails

Here are few easy steps:

1. Open Exchange Management console -> Organization Configuration -> Hub Transport -> Send Connectors tab -> New Send Connector.
2. Enter new send connector Name and select Internet from the intended use dropdown -> Next.
3. Add -> New SMTP Address Space -> put * in the address field -> Ok.
4. Check “use domain name system.." -> Next ->(Add HT Server if required)-> Next -> New -> Finish.
5. Right-click on the newly created send connector -> Properties.
6. Type your domain name in "Specify the FQDN..." -> Ok.

Relay on Exchange 2007 and 2010

SMTP Virtual Server in Exchange 2003 has been replaced by Receive
Connectors in Exchange 2007 and 2010.

1. Open Exchange Management Console -> Server Configuration -> Hub Transport .
2. Right-click each Receive Connector -> Properties and make the corresponding changes in the Permission Groups tab.

Friday, June 24, 2011

Error 2147504141 - Hub Transport Role Install Failed

From the series "the error is between the chair and the keyboard":

I tried installing Microsoft Exchange 2010 SP1 on a Hyper-V 2008 R2 virtual machine.
The Hub Transport Role installation kept failing with error 2147504141.

The solution: 


1. Install SP1 for 2008 R2 and all available updates.
2. Install corresponding prerequisites.

1) Add role - Active Directory Services
2) Configure Active Directory
3) Add role - Active Directory Lightweight Services
4) Add feature - Windows Process Activation Service
    - Process Model
    - Configuration APIs
5) Add role - Web Server (IIS)
    - Security - Basic Authentication
    - Security - Windows Authentication
    - Security - Digest Authentication
    - Performance - Dynamic Content Compression
    - Management Tools - IIS 6 Management Compatibility (include all items under this service)
6) Add feature - PowerShell
7) Enable Net.Tcp Port Sharing from services.msc.
8) Apply the 2010 Office System Converter (not the 2007!!!!)

Here is an extremely helpful link:
http://www.igetmail.com/how-to-setup-exchange-2010/how-to-complete-the-setup-of-exchange-2010.html#continue

3. Do this before installing Exchange:
Run following commands from Exchange setup CD to prepare AD for Exchange 2010

1) To prepare legacy Exchange permissions in every domain in the forest that contains the Exchange Enterprise Servers and Exchange Domain Servers groups, run the following command.
setup /PrepareLegacyExchangePermissions or setup /pl
2) From a Command Prompt window, run the following command.
setup /PrepareSchema
3) From a Command Prompt window, run the following command.
setup /PrepareAD /OrganizationName:"First Organization"
4) From a Command Prompt window, run one of the following commands:
setup /PrepareDomain


http://www.infotechguyz.com/exchange2010/PrepareADforexchange2010.html
This worked :D. Running the 4 setup commands before installing will make it work like a charm.

4. Continue with the Exchange installation.
Installation should be successful now.

5. Try fixing errors using this link:
http://msexchangeguru.com/2011/08/13/2147504141/
Did not work for me though..

Thursday, June 23, 2011

Error: You must close all dialog boxes before you can close Exchange Management Console.

If you are getting following error when trying to close Exchange Management Console,











here is what you have to do:

1. Go to Control Panel -> Programs -> Uninstall a program -> View installed updates.
2. Search for Internet Explorer 9 -> Uninstall.
3. Restart.

Now closing the Exchange Management Console should work.

It looks like a fix was made: http://blogs.technet.com/b/exchange/archive/2011/10/17/a-fix-for-the-interoperability-issues-between-exchange-2007-and-2010-emc-and-ie9-is-now-available.aspx