Get rid of second 169.254.x.x IPv4 address on Windows Server 2008 R2

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\ there were two AdaptorGUIDs, but only one of them had any parameters.

I created the IPAutoConfigurationEnabled parameter for both these AdaptorGUIDs with a value of 0 as instructed and re-booted.

Here are the registry entries for the two AdaptorGUIDs:

Reboot and check.


Upgrading Exchange 2010 to new hardware (Exch2010 to Exch 2010)

  1. 1.   Move the mailboxes.

Creating Move Requests using the Exchange Management Console

Launch the Exchange Management Console and navigate to Recipient Configuration/Mailbox.

Select a mailbox, or hold the CTRL key to select multiple mailboxes to move as a group.

Selecting mailboxes to move in the Exchange Management Console

In the Actions pane click on New Local Move Request.  Local Move Requests are for moves within the same Exchange organization.

Start a new Local Move Request

All of the mailboxes selected for the New Local Move Request wizard will be moved to the same target mailbox database.  Click the Browse button to choose a target mailbox database.

Browse to select a target mailbox database

Select the mailbox database to move the pilot group to and then click OK.  Click Next to continue.

Choose the target mailbox database

Leave the Move Settings as the default settings and click Next to continue.  If you encounter issues with corrupt items you may need to create a new move request for those mailboxes and choose to skip corrupted messages.

Configure the settings for the mailbox move requests

Review the list of mailboxes that will be moved and then click New to create the move requests.

Review the mailboxes to be moved

Click Finish to close the wizard.

The move requests are created and will be processed by the Exchange server.  You can view the status of the move requests in the Exchange Management Console under Recipient Configuration/Move Request.

View the status of the mailbox move requests

Right-click a move request and choose Properties to see the status of that move request.

View the progress of a mailbox move request


  1. 2.   Move the public and system folders.


This is really tough task, when you want to move public folder database from one server to another server in exchanger server 2007, Exchanger Server 2010,
before starting the activity you have to create one public folder on server,


Stpe-1:  After creating the public folder you have to execute the command
.\MoveAllReplicas.ps1 -Server Server1 -NewServer server2
but before executing this command you have to set the directory,
Cd program files>microsoft>exchange server>v14>scripts then execute.\MoveAllReplicas.ps1 -Server Server1 -NewServer server2

after executing your public folder will move,


Stpe-2: verify public folder is moved or not-
run the following command 
Get-PublicFolderStatistics -Server


if that is showing nothing means your public folder is moved to destination server.

Stpe-3: To get a listing of all system folders on this database, run the command

Get-publicfolder \NON_IPM_SUBTREE -recurse |ft Name,Replicas


Stpe-4: then you have to set public folder default on that server where you have moved,
follow the following steps,

  1. In the console tree, navigate to Organization Configuration > Mailbox.
  2. In the result pane, select the mailbox database for which you want to change the default public folder database.
  3. In the action pane, under the mailbox database name, click Properties.
  4. In Properties, click the Client Settings tab.
  5. Next to the Default public folder database box, click Browse.
  6. In Select Public Folder Database, select the public folder database from the list of public folder databases, and then click OK.
  7. Click OK

Stpe-5: Remove old public folder

  1. 3.   Move the connectors.

You can change the source transport server on your send connector(s) to the new server.

For the receive connectors, yes create any additional/custom ones on the new server and direct those hosts that use them to the new server (hopefully they’ve been using a DNS alias for this so you can just update that one DNS alias. If not, consider doing that from this point forward

You’ll also need to look at any external URLs for services such as OWA, ActiveSync, and how you’ve published those to the internet


4.Change all CNAME records (webmail, autodiscover) to point to new server.



5. Change all SMTP devices to route to the new server.








6. Change OAB Generation server.


7. Remove the databases from the old server.


1>Run Get-Mailbox -Database “Database Name” –Arbitration command to find all the arbitration mailboxes

<2>If there are some arbitration mailboxes, move them to different databases and then delete the database again

Get-Mailbox -Database “Mailbox Database” –Arbitration | New-MoveRequest –TargetDatabase “New Mailbox Database”

<3>If all above don’t work, you can use ADSIEDIT tool to delete mailbox database:

1.        Open Adsiedit.msc

2.        Connect to the configuration partition.

3.        Expand Configuration-Services-Microsoft Exchange-<Organization Name>-Administrative Groups-Servers-<Messaging Server name>-Information Stores.

4.        Delete the appropriate database.


7.Uninstall Exchange Server.


8. Shut down the old server.

How to set Outlook to download only E-mail headers

This enables to you browse through your e-mails without actually having to download all the e-mails and their attachments in their entirety, which can often be a lengthy task.

To configure Outlook to download only the e-mail headers, do the following:

    1.    On the Send / Receive tab, in the Send & Receive group, choose Send/Receive Groups:

Send and Receive in Outlook 2010

    2.    In the Send/Receive Group list, choose Define Send/Receive Groups… (or pressCtrl+Alt+S):

Send/Receive Groups in Outlook 2010

    3.    Select a group to modify and click Edit….

    4.    From the Accounts section on the left side of the dialog box, you can select the mail account that you want to modify the settings for.

Send/Receive Settings

    4.    Select a folder from the list of folders in the Folder Options section and then choose the option Download headers only.

It is possible to have different setting for each folder in an account, so, for example, you could set Outlook to download only headers in a folder that you know gets a large volume of e-mails.

Restoring the Default Domain and Default Domain Controller Policy in Windows Server 2008

It is Microsoft Best Practice to leave the Default Domain Policy alone – and create another Group Policy on domain level and define settings there. If you follow this Best Practice you surely have no problems when reverting your settings to the default. If you have changed the Default Domain Policy, you could run into pain what if you need to revert the settings you made?

C:\>dcgpofix /ignoreschema

Microsoft(R) Windows(R) Operating System Default Group Policy Restore Utility v5.1
Copyright (C) Microsoft Corporation. 1981-2003
Description: Recreates the Default Group Policy Objects (GPOs) for a domain
Syntax: DcGPOFix [/ignoreschema] [/Target: Domain | DC | BOTH]

This utility can restore either or both the Default Domain Policy or the
Default Domain Controllers Policy to the state that exists immediately after
a clean install. You must be a domain administrator to perform this operation.


You are about to restore Default Domain policy  and Default domain Controller policy for the following domain

Do you want to continue: <Y/N>? y

WARNING: This operation will replace all ‘User Rights Assignments’ made in the chosen GPOs. This may render some server applications to fail. Do you want to continue: <Y/N>? y
The Default Domain Policy was restored successfully Note: Only the contents of the Default Domain Policy was restored. Group Policy links to this Group Policy Object were not altered.
By default, The Default Domain Policy is linked to the Domain.

The Default Domain Controller Policy was restored successfully Note: Only the contents of the Default Domain Controller Policy was restored. Group Policy links to this Group Policy Object were not altered. By default, The Default Domain Controller Policy is linked to the Domain Controllers OU.

Downgrading virtual machine hardware version 8 to version 7

  • Make sure you have a good backup of the VM
  • Power off the VM
  • Make sure the VM doesn’t have any snapshots before proceeding
  • From the ESX console or from a Putty session, edit the VMs VMX file, using your favorite editor
    vi /vmfs/volume/DS1/WIN2008srv/WIN2008srv.vmx
  • Change the virtual hardware version from:
    virtualHW.version = “8”


    virtualHW.version = “7”


SQL Server 2008: Forgot to add an administrator account?

How to recover SA password on Microsoft SQL Server 2008 R2

First start SQL service in a Single User Mode.

  • Stop the SQL services

  • Edit the properties of the SQL Service

  • Change the startup parameters of the SQL service by adding a –m; in front of the existing parameters

    • Start the SQL services. These are now running in Single User Mode.
    • Start CMD on the SQL server


Start the SQLCMD by using below command.

sqlcmd -S Computername\SQLEXPRESS -E


Now we create a new user. Enter following commands


Now we grant the user a SYSADMIN roles using the same SQLCMD window.

exec sp_addsrvrolemember ‘vijay’, ‘sysadmin’

  • Stop the SQL service again
  • Change the SQL service properties back to the default settings

  • Start the SQL service again and  login with newly created user(vijay in my example) with SQL Server Authentication.
  • Go to security panel and access properties of sa and change the password.

Now Change SA password.