Memorise

Windows Update stopped working, or Service is missing

Go to Start / All Programs / Accessories. Right Click the ‘Command Prompt’ item and click the ‘Run As Administrator’ option.

 In the Command Prompt window, Paste the following command.

 REGSVR32 %SYSTEMROOT%\SYSTEM32\WUAUENG.DLL

 Press ENTER.

 You should see a popup that says the command succeeded.

 Exit the command prompt and try Windows Update again.


DFS was configured and working fine on Server 2008 STD, but now it’s no longer replicating.

- Due to the following error, the DFS Replication reporting mechanism cannot access the WMI (Windows Management Instrumentation) namespace to retrieve certain reporting information. Error ID: 0x80041002.
- DFS Replication cannot replicate with partner <server name> for replication group <domain>\<name space>\<share>. The partner did not recognize the connection or the replication group configuration. The DFS Replication service used partner DNS name <server name>, IP address <the server ip>, and WINS address <server name> but failed with error ID: 9026 (The connection is invalid). Event ID: 5012
AND
- The DFS Replication service is stopping communication with partner <server name> for replication group Domain System Volume due to an error. The service will retry the connection periodically. 
Additional Information: 
Error: 1726 (The remote procedure call failed.) 
Connection ID: 580D7FC3-873F-48CC-AFC1-73E96DFADCE2 
Replication Group ID: ACA5FC8A-AA2E-4D40-8ECC-3A0A8F45E5F

Solution below sorted my problem:

Open a CMD prompt in %windir%\system32\wbem
type mofcomp dfsrprovs.mof as below
C:\Windows\System32\wbem> mofcomp dfsrprovs.mof
net stop winmgmt
net start winmgmt
net start iphlpsvc
net stop dfsr
net start dfsr

Managing public folders in Exchange Server 2007 SP1

Managing public folders in Exchange Server 2007 SP1 still requires the use of PowerShell cmdlets snap-in exposed in the Exchange Management Shell. This practical example illustrates how to resolve common issues around public folder access rights.

Scenario A: Outlook shows public folder as “Access Denied”(you do not have permissions to …)

[PS] C:\Windows\System32>Get-PublicFolderClientPermission -Identity “\folder\sharedItems” | fl

Identity : \folder\sharedItems
User : Default
AccessRights : {FolderVisible}

Identity : \folder\sharedItems
User : Anonymous
AccessRights : {FolderVisible}

Identity : \folder\sharedItems
User : swissitpro.ch/OU1/pic
AccessRights : {CreateItems, EditOwnedItems, EditAllItems, FolderContact, FolderVisible}

Identity : \folder\sharedItems
User : swissitpro.ch/group/it/grpitadmin
AccessRights : {Owner}

Identity : \folder\sharedItems
User : swissitpro.ch/OU1/groupOfPFUsers
AccessRights : {Author}

Removing existing access rights and then assigning the Person-In-Charge (PIC) the Author role with pre-defined access rights solved the problem:

[PS] C:\Windows\System32>Remove-PublicFolderClientPermission -Identity “\folder\sharedItems” -user “pic” -accessrights CreateItems, EditOwnedItems, EditAllItems, FolderContact, FolderVisible

Confirm
Are you sure you want to perform this action?
Removing Public Folder Permission on “\folder\sharedItems” for User “pic”, Access Rights “‘CreateItems’, ‘EditOwnedItems’, ‘EditAllItems’, ‘FolderContact’, ‘FolderVisible’”.
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is “Y”): y

[PS] C:\Windows\System32>Add-PublicFolderClientPermission -Identity “\folder\sharedItems” -AccessRights author -User “pic”

Identity                   User                       AccessRights
——–                   —-                       ————
\folder\sharedItems       swissitpro.ch/OU1/pic …      {Author}

Adding the access rights of FolderContact simply identifies the account as the administrative contact for the public folder:

[PS] C:\Windows\System32>Add-PublicFolderClientPermission -Identity “\folder\sharedItems” -AccessRights FolderContact -User “pic”

The state of the public folder access rights for user pic now reads:

[PS] C:\Windows\System32>Get-PublicFolderClientPermission -Identity “\folder\sharedItems” | fl

Identity : \folder\sharedItems
User : swissitpro.ch/OU1/pic
AccessRights : {ReadItems, CreateItems, EditOwnedItems, DeleteOwnedItems, FolderContact, FolderVisible}

Scenario B: Person-In-Charge cannot modify items created by others

So far, the modifications grant the pic user access rights to peruse the public folder, create, modify and delete objects owned by him/her only. S/he is not able to carry out his/her duties as PIC to administer items created by others in the same location.

To fix this, add the missing access rights with the end result as shown:

[PS] C:\Windows\System32>Add-PublicFolderClientPermission -Identity “\folder\sharedItems” -AccessRights EditAllItems,DeleteAllItems -User “pic”

[PS] C:\Windows\System32>Get-PublicFolderClientPermission -Identity “\folder\sharedItems” | fl

Identity : \folder\sharedItems
User : swissitpro.ch/OU1/pic
AccessRights : {ReadItems, CreateItems, EditOwnedItems, DeleteOwnedItems, EditAllItems, DeleteAllItems, FolderContact, FolderVisible}


Windows Event Viewer CUSTOM XML FILTER

<QueryList>
  <Query Id="0" Path="Security">
    <Select Path="Security">*[EventData[Data and  (Data="swilkinson")]]</Select>
  </Query>
</QueryList>

Here are examples of simple custom filters in Windows Event Log:
Select all events in the Security Event Log where the account name involved (TargetUserName) is "AUser"
<QueryList><Query Id="0" Path="Security"><Select  Path="Security">*[EventData[Data[@Name="TargetUserName"] and  (Data="AUser")]]</Select></Query></QueryList>

Select all events in the Security Event Log where the string "AUser" is present as data anywhere in the EventData section
<QueryList><Query Id="0" Path="Security"><Select  Path="Security">*[EventData[Data and  (Data="AUser")]]</Select></Query></QueryList>

Select all events in the Security Event Log where the strings "AUser" or "JDoe" are present as data anywhere in the EventData section
<QueryList><Query Id="0" Path="Security"><Select  Path="Security">*[EventData[Data and (Data="AUser" or  Data="JDoe")]]</Select></Query></QueryList>

Select all events in the Security Event Log where the string "AUser" is present as data anywhere in the EventData section and the Event ID is "4471"
<QueryList><Query Id="0" Path="Security"><Select  Path="Security">*[System[(EventID="4771")]] and *[EventData[Data and  (Data="AUser")]]</Select></Query></QueryList>

Fix “Logon Failure: The Target Account Name is Incorrect” Error

Reset Machine Account Passwords using Netdom.exe

netdom resetpwd /s:server /ud:domain\User /pd:*

The /s:server is the name of another domain controller in which the KDC service is running. That server will be used for setting the machine account password.

The other two parameters are simply the user name and password for a domain administrator account.

You will need to install the Windows Server Support Tools from the CD-ROM. Once installed, you have to stop the Kerberos Key Distribution Center service and set the Startup Type to Manual.

Note that this method basically is fixing a problem with replication between two domain controllers. Sometimes replication can fail because the secret password between the domain controllers gets out of sync.

Make sure replication between your domain controllers is actually working!


Extend a data volume in Windows Server 2003, in Windows XP, and in Windows 2000

How to use Diskpart.exe to extend a data volume in Windows Server 2003, in Windows XP, and in Windows 2000

You can use the Diskpart.exe utility to manage disks, partitions, and volumes from a command-line interface. You can use Diskpart.exe on both Basic disks and Dynamic disks. If an NTFS volume resides on a hardware RAID 5 container that can add space to the container, you can extend the NTFS Volume with Diskpart.exe while the disk remains a Basic disk.

Use the extend command to incorporate unallocated space into an existing volume while preserving the data.

The following are the requirements for the extend command:

  • The volume must be formatted with the NTFS file system.
  • For Basic volumes, the unallocated space for the extension must be the next contiguous space on the same disk.
  • For Dynamic Volumes, the unallocated space can be any empty area on any Dynamic disk on the system.
  • Only the extension of data volumes is supported. System or boot volumes may be blocked from being extended, and you may receive the following error:
    Diskpart failed to extend the volume. Please make sure the volume is valid for extending
  • You cannot extend the partition if the system page file is located on the partition. Move the page file to a partition that you do not want to extend.

To extend a partition or volume, you must first select the volume to give it the focus, and then you can specify how large to make the extension. To extend a volume, follow these steps:

  1. At a command prompt, type diskpart.exe.
  2. Type list volume to display the existing volumes on the computer.
  3. Type Select volume volume number where volume number is number of the volume that you want to extend.
  4. Type extend [size=n] [disk=n] [noerr]. The following describes the parameters:
    size=n
    The space, in megabytes (MB), to add to the current partition. If you do not specify a size, the disk is extended to use all the next contiguous unallocated space.

    disk=n
    The dynamic disk on which to extend the volume. Space equal to size=n is allocated on the disk. If no disk is specified, the volume is extended on the current disk.

    noerr
    For scripting only. When an error is thrown, this parameter specifies that Diskpart continue to process commands as if the error did not occur. Without the noerr parameter, an error causes Diskpart to exit with an error code.

  5. Type exit to exit Diskpart.exe.

When the extend command is complete, you should receive a message that states that Diskpart successfully extended the volume. The new space should be added to the existing drive while maintaining the data on the volume.


ScreenOS Configure Backup Internet Interface with Automatic Failover

Version: 6.0 and higher
 Network Topology:
Two firewall interfaces configured in untrust zone.  One for each internet service provider.
Description:
You can setup a second internet service as a configured backup line for use during failure on the primary line.  This utilizes interface backup and the track-ip features of ScreenOS 6.

This will automatically do the failover during the outage.

This example assumes that ethernet0/0 is the current primary interface while ethernet0/1 is the new service interface.

Configuration:
Setup the new service interface

Add the ip address and untrust zone to ethernet0/1 or setup the dhcp on this interface for the new carrier.

 

If this is a static configuration then add the second default route to the carrier provided address out ethernet0/1.  On DHCP this route is added automatically.

 

Establish the backup and primary interfaces.



 

Web

Network–Interfaces–Backup

Select Primary interface ethernet0/0

Select Backup interface ethernet0/1

Select Track-ip

Hit Apply

 

CLI

set interface ethernet0/0 backup interface ethernet0/1 type track-ip

Setup Track-ip Monitoring to detect failure

Create the track-ip on interface ethernet0/0.

 

This is an internet ip address that when this interface can no longer ping it is considered down.  A good choice is the service provider DNS server for this line.

 

Web

Network–Interfaces–List

Edit ethernet0/0

Monitor tab

Select  enable track-ip

hit apply

 

Hit Add Monitor track ip

Enter ip address to ping (Carrier DNS)

 

CLI

set interface ethernet0/0 monitor track-ip ip

set interface ethernet0/0 monitor track-ip ip 1.1.1.1

Verification: 

Look at interface list and observe that primary line is up and backup interface is down
Disconnect the primary interface cable and observe the change in status on the interfaces

References:

ScreenOS Concepts and Examples Guide
http://www.juniper.net/techpubs/software/screenos/screenos6.2.0/index.html

Volume 2 Fundamentals
Chapter 3 Interfaces
Configuring Backup Interfaces


Reset Juniper SSG firewall using pinhole on the device

Using the device status LEDs:
1. Locate the Reset (or Reset Config) pinhole on the device. Using a thin wire
(such as a straightened paperclip), push the pinhole button for four to six
seconds.
The Status LED blinks red.
NOTE: If you do not follow the complete sequence, the reset process cancels without any
configuration change and the console message states that the erasure of the
configuration is aborted. The Status LED returns to blinking green. The device
generates SNMP and SYSLOG alerts to configured SNMP or SYSLOG trap hosts.Resetting the Device to Factory Defaults „ 41
Chapter 3: Configuring the Device
2. As soon as the Status LED blinks green, release the pinhole button and wait
two seconds.
3. The device now waits for the second reset, which confirms the operation.
Push the pinhole button again for four to six seconds until the device resets.
The system now resets and returns to the login prompt; the default login name
and password are both reset to netscreen.

How to Upgrade Single Server Exchange 2007 to Exchange 2010

A – PREWORK:

  1. Install R2 of Windows 2008 64 Bit on a new box and run Microsoft Update to patch it to whatever is current.
  2. If the server is not already a Domain Controller, you need to run DCPROMO to make it so, assuming you are going to fully decommision your old single server, if not skip to item 3.  Make sure you move the FSMO’s to your new DC.
  3. Install the Microsoft Office System Converter Filter Pack which you can source HERE.  This lets your Exchange Server index Office documents.  It is not absolutely needed but both the Exchange pre-install check and the System Health Checks will throw a skippable errors if you don’t have it.
  4. Start the TCP Port Sharing service and set it to automatic.  You can do this through the services GUI or use command line:
    Sc config NetTCPPortSharingstart=auto
  5. Install all the required prequisite software which basically is .NET, RSAT Tools, parts of IIS, and the Windows Desktop Experience.  It is really quite a lot of work to get this right so MS made it easy by creating install scripts.  Don’t worry if you already have some of these features installed, the script is additive only.  For complete details on prequisites read THIS.
    1. R1 of Windows 2008, open an elevated command prompt and navigate to the scripts folder on the root of the Exchange 2010 DVD and run each of the following:
      • sc config NetTcpPortSharing start= auto
        ServerManagerCmd -i Desktop-Experience       
          – this is only needed for the UM role
        ServerManagerCmd -ip Exchange-Typical.xml -Restart
    2. R2 of Windows 2008, open a PowerShell command line and these two scripts:
      • Import-Module servermanagerAdd-WindowsFeature NET-Framework,RSAT-ADDS,Web-Server,Web-Basic-Auth,Web-Windows-Auth,Web-Metabase,Web-Net-Ext,Web-Lgcy-Mgmt-Console,WAS-Process-Model,RSAT-Web-Server,Web-ISAPI-Ext,Web-Digest-Auth,Web-Dyn-Compression,NET-HTTP-Activation,RPC-Over-HTTP-Proxy,Desktop-Experience –Restart
  6. You may read that the Active Directory Schema has to be updated prior to install but in fact the Exchange setup will quickly and automatically perform that upgrade.

Run a Windows Update and install everything you can.


B – EXCHANGE 2010 CORE INSTALL:

  1. Start the “Exchange 2010” install and notice that the first two steps are already completed because of the pre-work listed above.
  2. Choose your language option; most “Westerners” will choose ONLY LANGUAGES FROM THE DVD.
    Exchange 2010 Language Selection  Exchange 2010 Languages from DVD
  3. Let the fun begin!  Select “Step 4: Install Microsoft Exchange” and then Typical
    Exch 2010 Install Languages from DVD
  4. You would think that an upgrade would automatically populate the “Configure Client Access Server External Domain” screen… but it doesn’t, so type in your domain:
  5. Watch it complete the Readiness Checks and don’t freak out if it finds a problem… the explainations are quite clear and easy to follow.
    Exchange 2010 Server Setup Rediness Checks
  6. Watch the server install (or go watch a sitcom and relax).  In my case it took about 20 minutes:
    Exchange 2010 Server Install
  7. Your Done!  Ya… not quite.  Perform some checks to make yourself feel like the upgrade, upgraded.  I signed into OWA to make sure my mail system was still fully functional (which was still running on the old 2007 as it should be at this point) and then I looked at my mail boxes using the new Exchange 2010 and finally I ran a health check:
    Exchange 2010 Mailboxes  Exchange 2010 Organizational Health Check
  8. Next I ran Windows Update but it found nothing, so I assume the updates are pulled during the install process.

Enter your PRODUCT KEY.
Exchange 2010 Product Key

 


C – CONFIGURE EXCHANGE 2010 & MIGRATE YOUR DATA:

Now that the install is complete and tested, you need to perform some migration & configuration tasks:

  1. Move your mailboxes from the old server to the new server which is a three step process:
    1. Go to RECIPIENT CONFIGURATION, MAILBOX, select all (or just a few if you want to test first) of your mailboxes, right click and select NEW LOCAL MOVE REQUEST and follow the wizard.  The only wierd part was the last screen has you click NEW (which means START):
      Exchange 2010 New Local Move Request to start Migration from Exchange 2007 Single Server  Exchange 2010 Local Move Request Wizard  Exchange 2010 Local Move Request, Mailbox Database Target  Exchange 2010 Local Move Request NEW button means Start
    2. Go to RECIPIENT CONFIGURATION, MOVE REQUEST and watch it work.  If you are getting worried or just want more information you can double click on any of the entries and Exchange will display a progress report:
      Exchange 2010 Move Request  Exchange 2010 Move Request Status Properties
    3. After all of the items have a COMPLETED status, right click on them and select CLEAR MOVE REQUEST.  Also, note that if you DON’T clear the move request that all of your RECIPIENT CONFIGURATION, MAILBOXes will have little green (move) arrows on them and you will not be able to do much with them.
      Exchange 2010 Clear Move Requests  Exchange 2010 Unfinished Move Requests Show Green Arrows
  2. Change to your ORGANIZATION CONFIGURATION, HUB TRANSPORT, SEND CONNECTORS, right click on the asterisk, select PROPERTIES, and go to the SOURCE SERVER tab.  Delete your old server and add your new server:
    Exchange 2010 Send Connectors Source Server
  3. Enable anonymous users (i.e. anyone on the internet) to SEND to this server by going to SERVER CONFIGURATION, HUB TRANSPORT, right click on your default RECEIVE CONNECTOR, select PROPERTIES, then go to the PERMISSIONS GROUPS tab and selecting Anonymous Users and all the Exchange types:
    Exchange 2010 Hub Transport, Recieve Connectors Permissions Groups
  4. Under ORGANIZATION CONFIGURATION, MAILBOX, OFFLINE ADDRESS BOOK tab, delete the old OFFLINE ADDRESS BOOK entry and create a new one for the new server.  (There is likely a way to edit to the existing one but after 30 minutes, I just gave up and recreated it… it took about 1 minute.)
    Exchange 2010 new oab  Exchange 2010 new Offline Address Book Distribution Point
  5. Enable OWA on the new 2010 server by going to SERVER CONFIGURATION, CLIENT ACCESS, and right clicking on your server and selecting ENABLE OUTLOOK ANYWHERE.  Most people will want to leave the authentication method as BASIC (yes, it is still secure because it occurs in an SSL tunnel).
    Exchange 2010 Enable Outlook Anywhere, OWA, Outlook Web App  Exchange 2010 Outlook Anywhere Wizard Use Basic Authentication
  6. Sign into the new 2010 OWA on the server using   https://127.0.0.1/owa (don’t forget the “S” in https – also just ignore the cerficate warnings, we deal with them in section D below) and send a few emails to make sure everything is working.
  7. Update your external firewall to redirect traffic to your new exchange servers internal IP address (that would be port 25 and 443 at a minimum.  In my case I was scrapping my old server and I ran an authoritative DNS for a few sites so I also had to update the forwarding port 53 and I allow a few clients to use POP so I updated ports 110 and 995 (secure POP).
  8. Check OWA using your external domain https://mail.yourdomain.com/owa (don’t forget the “S” in https –  also just ignore the cerficate warnings, we deal with them in section D below)) and try sending an email to external source then replying.

D – MOVING AN EXCHANGE 2007 CERTIFICATE TO EXCHANGE 2010

I don’t enjoy dealing with certificates, so I buy multiyear certs and so my old 2007 Exchange server had a cert with more than a year left on it and I do not want to buy a new one!  Below is how I moved it:

  1. On your new Exchange 2010 server, go to SERVER CONFIGURATION and select NEW EXCHANGE CERTIFICATE, and go through each section.  All this wizard does is make you think about what you need secured and build a CSR request; it does not enable these features in anyway.  You should have 5 names in your certificate:
    NAME  EXAMPLE
    external mail server name mail.commodore.ca
    autodiscover name autodiscover.commodore.ca
    root domain name commodore.ca
    internal fqdn of host server1.corpdomain.local
    host name server1
    If you don’t see those five when you are done the wizard, go back and change ANY of the fields to match.  I added “commodore.ca” under the CLIENT ACCESS SECTION and all was well when I got to the next screen.
    Exchange 2010 New Exchange Certificate Wizard
  2. Select your external mail server name as the COMMON NAME, usually something like  MAIL.SERVER.COM.  This has to match your old servers common name or most certificate providers will not update your cert.
    Excahnge 2010 New Certificate Wizard Common Name
  3. Complete the ORGANIZATION AND LOCATION fields with any information and choose a location to put the CSR request file .   Exchange does not care about this information but your certificate provider might.
    Exchange 2010 Certificate Wizard Organization   Exchange 2010 Finish New Certificate WizardFrom this section on I am going to talk about GoDaddy, because that is who I use and that is who I like.  However, all other certificate providers will have a similar process.
  4. Sign into your GoDaddy account, drill down to your cert, choose REKEY and then paste the contents of the .REQ file you created in the steps above into the dialog box.
    Exchange 2010 GoDaddy Rekey Certificate Process
  5. While still in GoDaddy, go to your certs, choose MANAGE, paste in the contents of the .REQ file (again) and then click little blue RETRIEVE SANS, and then delete the old server entries.  Sorry I did not get a screen shot of this.  If you have any question call the awesome GoDaddy staff 24 hours a day at 480-505-8877 (and no… I do not have any hooks or profit to/from GoDaddy… but I still love them).
  6. Wait two minutes for GoDaddy to send you an email verification and then click the varification link:
    Exchange 2010- GoDaddy Cert Change Verification
  7. In a few minutes, go back to the GoDaddy site, sign in, go to your certificates and select DOWNLOAD.
  8. Follow GoDaddy’s installation instructions for Exchange 2010 closely:

    To Install Intermediate Certificate Bundles

    1. Type mmc in the Start search box after pressing the Start menu to start the Microsoft Management
      Console (MMC).
    2. In the Management Console, select File then Add/Remove Snap In.
    3. In the Add or Remove Snap-ins dialog, click the Add button and then select Certificates.
    4. Choose Computer Account then click Next.
    5. Choose Local Computer, then click Finish.
    6. Close the Add or Remove Snap-ins dialog and click OK to return to the main MMC window.
    7. If necessary, click the + icon to expand the Certificates folder so that the Intermediate Certification Authoritiesfolder is visible.
    8. Right-click on Intermediate Certification Authorities and choose All Tasks, then click Import.
    9. Follow the wizard prompts to complete the installation procedure.
    10. Click Browse to locate the certificate file. Change the file extension filter in the bottom right corner to be able to select the file. Click Open after selecting the appropriate file.
    11. Click Next in the Certificate Import Wizard.
    12. Choose Place all certificates in the following store; then use the Browse function to locate Intermediate Certification Authorities. Click Next. Click Finish.NOTE: If the Go Daddy Class 2 Certification Authority root certificate is currently installed on your machine you
      will need to disable it from the Trusted Root Certification Authorities folder.
    13. Expand the Trusted Root Certification Authorities folder
    14. Double-click the Certificates folder to show a list of all certificates.
    15. Find the Go Daddy Class 2 Certification Authority certificate.
    16. Right-click on the certificate and select Properties.
    17. Select the radio button next to Disable all purposes for this certificate.
    18. Click OK.
    19. Repeat steps 13 to 18, using Starfield Class 2 Certificate Authority as the certificate name to disable.

    NOTE: Do not disable the Go Daddy Secure Certification Authority certificate located in the Intermediate Certification
    Authorities folder. Doing so will break the server, causing it to stop sending the correct certificate chain to the browser.

    To Install the SSL Certificate on Microsoft Exchange 2010 – SEE MY SCREEN SHOT BELOW

    1. Download and open the ZIP file containing your certificate. Your certificate is named
      your_domain_name.crt, where your_domain is the common name of your certificate.
    2. Copy the CRT file to your Exchange server.
    3. Click the Start menu, and then, in the Start search box, type mmc to start the Microsoft
      Management Console (MMC).
    4. Click Manage Databases, and then select Server configuration.
    5. Select your certificate from the Exchange Certificates section (listed by its Friendly Name),
      and then, from the Actions menu, click Complete Pending Request.
    6. Browse to your certificate file, click Open, click Complete, and then click Finish.NOTE: Exchange 2010 might display, “The source data is corrupted or not properly Base64 encoded.” You can
      ignore this error if, under Self Signed, your certificate is listed as False. If it displays True, refresh your console
      by pressing F5. If it still displays True, create a new CSR and then re-key your certificate.
    7. From the Actions menu, click Assign Services to Certificate.
    8. Select your server from the list provided and then click Next.
    9. Select the services you want to assign to your certificate, click Next, click Assign, and then
      click Finish.

    Exchange 2010 - Install Updated Certificate  Exchange 2010 Assign New Certificate To IMAP SMTP MAPI POP...

  9. I read nowhere that you need to perform an IISRESET or a restart the EXCHANGE TRANSPORT SERVICE, but I did those anyway and then I rebooted for other reasons… this was not likely required.
  10. Check your system by logging into your OWA and check your Outlook clients.  On my quick test I found:
    • one of the machines I checked OWA on still showed a certificate warning but when I check the cert, all was well… a reboot of the client PC took care of this
    • one Outlook 2010 client did not update the server information and I had to spend a few minutes adjusting it but then all was well.

E – POP3:

On the off chance you care about POP3, follow these three simple steps:
(Note, this is straight from my 2007 instructions so the screens look slightly different)

  1. Start the MICROSOFT EXCHANGE POP3 Service on the Server and set it to AUTOMATIC
    Start POP3 Service
  2. If you want to block POP3 users from using “Exchange mail” disable MAPI.  This is step is only required if you want to use the Outlook 2007 AUTOCONFIGURE feature (or you just don’t want POP users burning up storage on your server)
    Disable MAPI on Exchange 2007
  3. If you followed step 2 then when you create a new mail account in Outlook, the autoconfigure will take care of the rest.  If you did not follow step 2, then you will setup the POP account like any other and then go into your Advanced Account Settings and turn on MY OUTGOING SERVER REQUIRES AUTHENTICATION and THIS SERVER REQUIRES ENCRYPTED SSL CONNECTION
    SMTP requires password for POP in Exchange 2007  Encrypted SSL Connection Required for POP3 Connection on Outlook Client for Exchange 2007

F – ANTISPAM

If you want to see how to install Forefront Protection 2010 for Exchange read my short instructions HERE, otherwise… read this:

You might be thinking to yourself, hey, I saw the ANTISPAM tab under ORGANIZATION, HUB  TRANSPORT, and I even went so far as to check that the configuration from the old 2007 server had moved over… ya… but it will not fuction on the new server until you install it.

  1. Launch an Exchange Shell, change to the scripts folder (i.e. type cd $exscripts ) and then type  .install-AntispamAgents.ps1
    Exchange 2010 - Install and Configure AntiSpam from Shel
  2. As it tells you, go to the servers SERVICES and restart the Microsoft Exchange Transport Service
  3. Check the ANTISPAM tab under ORGANIZATION, HUB TRANSPORT and make sure the items are configured.  The most important/effective is the IP BLOCK LIST PROVIDERS.
    Exchange 2010 - AntiSpam IP Block List Providers

For more information see our AntiSpam section of our Exchange 2007 documentation (section D HERE).

G – QUICK CUSTOMIZE/BRAND OWA (Outlook Web App)

If you want to customize your OWA screens, all you have to do is change two graphics.  Both are stored under the following path by default:
c:Program FilesMicrosoftExchange ServerV14ClientAccessOwa#current_numthemesBase

Just snap your corporate logo on to both lgntopl.gif and logoowa.png and save them in the BASE folder.  This will be the default for all users as they log in.

Note that lgntopl.gif is also used by the log off screen so you kill two birds with one edit :).

The only problem with this process is that every notable Exchange patch will overwrite your changes so I created a folder called COPY TO BASE where I store these two graphics and I simply re-copy them into the BASE folder after every Exchange upgrade.

Exchange 2010 - Customize OWA logon and Logoff  Exchange 2010 - Customize OWA main screen

There is alot more customization you can perfom but I can not find much on 2010.  However, nearly all of the 2007 customization instructions still apply.  Sooo you can read THIS for more detail.

 

H – DECOMMISSION OLD EXCHANGE 2007 SINGLE SERVER

Once you are sure all has been moved to 2010, it is time to dump your 2007.    So here is the process:

  1. Uninstall Exchange 2007 from your old server via PROGRAMS AND FEATURES.  The deal here is do NOT use SETUP from the Exchange folder, apparently that will be Hell.
  2. Next DCPROMO the old Windows Server out of your network and reboot as requested
  3. Lastly have that old Windows Server join a workgroup (i.e. remove it from the domain).

If you are worried about the process, watch THIS video or THIS Microsoft text (and yes, you can ignore the part where he says you should delete the old Exchange 2007 database before uninstalling… I have both done this and confirmed it with MS Tech Support.)

If for some reason your Exchange 2010 server still has references to the old server, you can removing the old server from the domain manually by following THESE instructions.

 

I – VERIFICATION:

After you have everything running to your satisfaction you should run a couple of simple and fast system checks:

  1. Run the EXCHANGE 2010 ORGANIZATIONAL HEALTH checker:
    Exchange 2010 Organizational Health Check
  2. In the Exchange Management Console, click TOOLBOX, BEST PRACTICES ANALYZER, approve any updates and checks that it wants to do and then click GO TO WELCOME SCREEN.  Then start a HEALTH CHECK as per the obvious screen shots below.  Be sure to read the results and make whatever changes it suggests.
    Best Practices Analyszer for Exchange 2007 SP1 & SP2 Start New Scan Best Practices Analyzer Exchange 2007
  3. In the Exchange Management Shell, you should run:get-OrganizationConfig

    and then you should run:

    Test-SystemHealth

    and make sure everything looks as you expect it should.


Migrating from Small Business Server 2003 to Exchange 2003 Standard

Part – 1

Introduction

For the purposes of this article, I am assuming that the SBS server will be decommissioned at the end of the process, leaving a windows 2003 server Native Domain with a separate dedicated Domain Controller (DC) and separate server box running Exchange 2003 Standard.

You could in-fact keep the SBS server in the domain, so long as it remains a “god” in terms of holding the FSMO roles and being the DC in the root of the forest. Remember, you can’t have more than one SBS server in a forest at any one time!

This sounds easy, but do not forget that SBS is a control freak and wants to be in-charge of the whole forest. So asking it to take a back seat needs slow and careful attention. Disobey these rules at your peril. Plus, if you throw Exchange into the mix, this makes for quite a complex operation. Do not experiment on a live system. The slightest error and you lose the whole domain.


Figure 1: Test Lab Scenario setup

Figure 1 is a diagram of the lab environment that I have created for this tutorial using Virtual Server. SBS represents the original Small Business Server 2003 with Exchange installed and configured. DC01 will be the new domain controller and Exchange01 will be the new Exchange server. At the end of the process, SBS will be decommissioned, leaving DC01 controlling the domain and Exchange01 as the Exchange server.

To clear things up straight away, Microsoft does not permit you to separate components of SBS 2003, for example to install Exchange on another server. I have been asked this question on my blog previously.

The main steps of this procedure are as follows:

  1. Join a Windows Server 2003 Standard to the domain as a member server (DC01).
  2. Install DNS on DC01.
  3. DC promo DC01.
  4. Make DC01 a Global Catalog server (GC).
  5. Change the preferred DNS address of DC01 to point to itself. Change the preferred DNS address of SBS to point to DC01.
  6. Transfer the FSMO roles to DC01.
  7. Wait for replication to take place. Give it a good 15 minutes, depending upon the size of your network.
  8. Remove the GC from SBS.

Step-through Network configuration changes

  1. Join DC01 to the domain yellowpark.local as a member server.

Firstly, change the network card settings of DC01 to point to SBS for DNS.


Figure 2: Internet Protocol settings

Then, right click My Computer and Click properties, then click the Computer Name tab.

Click the Change Button, and enter the details of the domain to join.


Figure 3: Joining the domain

Click OK. You will then be prompted to enter a Username and Password with the permissions necessary to join the domain. Enter the username and password and click OK. You will then need to reboot.

  1. Install DNS on DC01

Go to Add Remove ProgramsAdd Remove Windows Components.

Select Network Services and click details.


Figure 4: Install Networking Services

Select DNS and WINS and click OK.

  1. Once DNS and WINS has installed, you are ready to promote DC01 to a Domain Controller.

Click StartRun. Then enter dcpromo and click OK.

Click through the Wizard then select Additional domain controller for an existing domain. Click Next.


Figure 5: Active Directory Installation

Enter a username and password with the permissions capable of doing this, e.g. Administrator. Click Next.

Enter the name of the domain (e.g. yellowpark.local) and click Next.

Select the location where you would like to store the database folder and the log folder, for the purpose of this article accept the defaults, Click Next.


Figure 6: Database and Log folders

Select the location you would like the Sysvol folder to be stored. Again, accept the default and click next.


Figure 7: Sysvol folder location

Enter a password to be used for the Directory Services Restore Mode. Make sure you don’t forget this! Click Nexttwice. DCPromo starts running and will take a few minutes to complete.

You will be prompted to reboot upon completion. Reboot and log onto the domain DC01.

  1. Next step is to make DC01 a Global Catalog Server (GC). Open Active Directory Sites and Services. Click Start, Administrative Tools, Active Directory Sites and Services.

Expand Sites, Expand Servers, then expand NTDS Settings. Right click NTDS Settings for Exchange01 and ClickProperties.

Tick Global Catalog.


Figure 8: Global Catalog Server

  1. Next we’re going to open the Network Card properties of DC01 and change the Preferred DNS Server IP address to point to itself – 192.168.0.11.
  2. Transferring the FSMO roles to DC01.

Click Start, point to Administrative Tools, and then click Active Directory Users and Computers.

Click the change button to change the RID Master role to DC01. Repeat this for each of the other tabs.


Figure 9: Operations Master Roles

To transfer the Domain Naming Master, Open Active Directory Domains and Trusts.

Click Start, point to Administrative Tools, and then click Active Directory Domains and Trusts.

Right Click Active Directory Domains and Trusts Node and click Operations Master. Click the change button to change the Operations Master to DC01.


Figure 10: Domain Naming Master

To transfer the Schema Master role:

Firstly, you’ll need to register Schmmgmt.dll (if you haven’t used it before). Click Start, click Run, type regsvr32 schmmgmt.dll, and then click OK. Then create a new snap in.  Click Start, click Run, type mmc, and then click OK.Right-click Active Directory Schema, and then click Change Domain Controller. Specify DC01. Right-click Active Directory Schema, and then click Operations Master. In the Change Schema Master dialog box, click Change. Move the site licensing server to the SBS 2003 computer. To do this, open Active Directory Sites and Services. Expand Sites and then click Default-First-Site-Name. Right-click Licensing Site Settings, and then clickProperties. Click Change, type the name of DC01 in the Enter the object name to select area, and then click OK.

  1. Reboot and wait for event 1119 or 1869 to show in the Event Viewer Directory Service Log on DC01. This shows DC01 is a GC. This is very important. Remember, no Global Catalog means no one can log on and you will loose the domain!

It can take an hour for this event to show. I usually go and make a cup of tea and come back later. There is a work around to make it happen quicker, but I would avoid it. When I did this test lab, it took 1 hour 47 minutes before I saw Event 1869.

  1. Next step is to remove the GC from SBS. Open Active Directory Sites and Services. Click Start, Administrative ToolsActive Directory Sites and Services. Expand Sites, Expand Servers, then expand SBS NTDS Settings. Right click NTDS Settings for Exchange01 and click PropertiesUn-tick Global Catalog.

Part – 2

Introduction

In Part 1, I covered the main steps required to prepare the forest, domain and network for decommissioning Small Business Server 2003 (SBS) from a forest. In this article I will cover the steps necessary to move Exchange from SBS to a different server and decommission SBS from the network.

At this point, we should have a new domain controller (DC01) installed into the domain. This is also a GC and holds all the FSMO roles. Next up, we will join Exchange01 to the domain and install Exchange 2003 onto Exchange01.

I’m not going to run through the installation process. Suffice to say, for the purposes of this tutorial, I have accepted the installation defaults. You can find a good article on the msexchange.org website for best practices on installing Exchange Server 2003.

Make sure you use Netdiag and Dcdiag to test all your network settings and connections. Also use these if you run into problems. It will instantly tell you what’s going wrong on the network.

You might also want to throw in gpupdate /force to check that the domain is refreshing policies OK. This checks if user permissions are running as expected and everything can talk to each other.

During this next stage, we will accomplish the following tasks:

  • Replicate all public folders to Exchange01
  • Rehome the Offline Address Book folder
  • Change the server that is responsible for generating the Offline Address List
  • Rehome the Schedule+ Free Busy folder
  • Rehome the Organization Forms folder
  • Rehome the Recipient Update Service (RUS)
  • Designate another server to be the routing group master
  • Create another Site Replication Service (SRS) instance
  • Rehome connectors to Exchange01
  • Move mailboxes to Exchange01
  • Decommission SBS

Step-through Exchange 2003 Migration settings

Open Exchange System Manager and check that the SBS and Exchange01 are showing as servers in the organisation.

Firstly, you want to replicate all the Public Folders on to Exchange01. This will then give you two copies of your public folders, which is good working practice anyway.

Click Start, point to Programs, point to Microsoft Exchange, and then click System Manager.

If the Display administrative groups option is turned on, expand Administrative Groups, and then expand First Administrative Group. (To display administrative groups, right-click Your_Organization, click Properties, click to select the Display administrative groups check box, click OK two times, and then restart Exchange System Manager).


Figure 2: Display Administrative Groups

Expand Folders, expand Public Folders, right-click a top-level public folder, and then click Properties.

Click the Replication tab, and then click Add.


Figure 3: Public Folder Replication

In the Select a Public Store box, select the name of the server where you want a replica of this public folder (Exchange01), and then click OK.

Click Apply, and then click OK. If this public folder has any subfolders and if you want these subfolders to have a replica on the destination server, right-click the top-level public folder, click All Tasks, and then click Manage Settings.

In the Propagate Folder Settings box, click to select the Replicas check box, and then click OK. When you complete this step, all subfolders of that top-level folder have a replica on the destination server.

Repeat steps 1 to 7 for all the Public Folders.

Next you need to wait for replication again, and then check that the public folders are In Sync. Follow these steps:

  1. Right-click the public folder to verify, and click Properties.
  2. Click the Replication tab, and click Details.
  3. The Replication Status column should indicate In Sync.


Figure 4: Public Folders In Sync

Next you must turn off replication for each public folder. To do this, follow these steps:

  1. Expand Public Folders, right-click a top-level public folder, and then click Properties.
  2. Click the Replication tab.
  3. In the Replicate content to these public stores section, click the name of the public folder store that is on the source server, click Remove, click Apply, and then click OK.
  4. Repeat these steps for each public folder:
    • Offline Address Book folder
    • Offline Address List
    • Schedule+ Free Busy folder
    • Organization Forms folder
    • Recipient Update Service (RUS)

Designate another server to be the routing group master

You must designate Exchange01 to be the routing group master. To do this, follow these steps:

In Exchange System Manager, expand First Administrative Group (where First Administrative Group is the name of your administrative group), expand Routing Groups, and then expand First Routing Group (where First Routing Group is the name of the routing group where you want to change the routing group master).

Click Members, right-click the server in the right pane that you want to make the routing group master, and then clickSet as Master.


Figure 5: Routing Group Master

Create another Site Replication Service (SRS) instance

If you have Site Replication Service (SRS) installed and running, you must create a new SRS in Exchange System Manager. I’m leaving this out, as we are assuming the SBS Server was a stand alone system.

Set-up connectors on Exchange01

Next you need to set-up any connectors from SBS on Exchange01. To do this, simply write down the connector settings from SBS and recreate them on Exchange01.

Move mailboxes to Exchange01

To transfer mailboxes from SBS to Exchange01, follow these steps:

Open Exchange System Manager and drill down to the Mailbox Store on SBS.

In the right pane, select the mailboxes you wish to move by holding down the Ctrl key and selecting the mailboxes with the mouse. Then right click, and click Exchange Tasks. Click Next on the Exchange Task Wizard.

On the Available Tasks page, under Select a task to perform, click Move Mailbox, and then click Next.

On the Move Mailbox page, click the destination server that is in the Server list, click a mailbox store in the Mailbox Store list, and then click Next.

Configure how to handle corrupted messages that are found during the move, and click Next two times.

Expected errors while moving mailboxes

Some mailboxes might take a couple of goes to transfer over. This is normal. Get as many done en-mass, then correct the errors.

After you have transferred mailboxes to the new server, the final stage of the process is to uninstall Exchange from SBS, dcpromo down to a member server, then remove SBS from the domain.

To uninstall Exchange Server from SBS, go to Control Panel and double click Add or Remove Programmes.

Select Windows Small Business Server from the list of programmes and click Change/Remove. Click through the wizard until your reach the components selection page.

In the Action column, select Remove from the drop down list. Click Next twice. Exchange will then be unistalled from the server.


Figure 6: Uninstall Exchange from SBS

When the uninstall has completed, reboot. Then run dcpromo. To do this, Click StartRun, type dcpromo and clickOK. Following this process the SBS will be a member server in the domain.

To remove SBS from the domain, right click MyComputer and select properties. Click the Computer Name tab and click the Workgroup radio button. Enter WORKGROUP for the new workgroup name and click OK. You will be prompted to reboot.

Following this, your new network will be running with a Stand alone Domain Controller (DC01) and stand alone Exchange Server (Exchange01).

Conclusion

This is a relatively straight-forward process so long as you take your time, and you’ve tried it out before. Do not experiment on a live system. When I did this for real the first time, I had a test network set-up that I used to try all the steps first. You could use Virtual server for this.