SlideShare a Scribd company logo
Upgrading AD from
Windows Server 2003 to
Windows Server 2008 R2
Daniel Petri (dpetri@microsoft.com)
Senior Premier Field Engineer, Microsoft
Agenda



Why upgrade?   Prepare

                         Action




Plan                     Cleanup
Why Upgrade your servers

In relation to Active Directory:
- RODC
- Server Core
- AD Snapshots (ntdsutil.exe, dsamain.exe)
- DS Auditing (auditpol.exe)
- Restartable AD service
- Administrative Center
- PowerShell Cmdlts
- AD Best Practice Analyzer
- Protect from accidental deletion
- GPO benefits
- Support lifecycle
Why Upgrade your DCs


Windows 2008 Domain                    Windows 2008 R2
Function Level                         Domain Function Level
                                       - Authentication mechanism
- DFSR replication of Sysvol
                                       assurance
(dfsrmig.exe)
                                       for AD-FS
- Advanced Encryption Services (AES
                                       - Managed Service Accounts
128 and 256) for Kerberos
                                       (MSA)
- Last Interactive Logon Information
- Fine-Grained Password Policy         Windows 2008 R2 Forest
- Personal Virtual Desktops            Function Level
- Offline Domain Join (djoin.exe)
                                       - AD Recycle Bin
Plan

What are the upgrade goals?
Map existing resources
What other roles do DCs perform?
Map the risks
Can you consolidate?
Can you virtualize?
Should you virtualize?
Plan for rollback
Identify potential issues

This is mostly because DES encryption types for the
Kerberos authentication protocol are disabled by default in
Windows Server 2008/R2.
    – SAP
    – Oracle Internet Directory (OID), CA Identity Manager,
       Tivoli Identity Management
    – Samba and other Linux/Unix interoperability
    – NetApp, EMC Celera or other storage devices
    – Firewalls, VPN, RADIUS
    – http://support.microsoft.com/kb/977321
Identify potential issues

Additional considerations:
   – Terminal Server License Server on a DC
   – CA on a DC
   – Smart Cards
   – Customized password filters
   – Time keeping software
   – 3rd-party apps that are hard coded to work against
     specific DCs
   – Exchange servers with manual DC configuration
Test

- The bigger and more complex you are, the more you
need to test before you act.

- Consider regulations and standards (such as Change
Management procedures)

- Test environment needs to be as close to production as
possible.

- Test and production need to be totally isolated from each
other.
Backup

Make sure you have a recent, supported and working
backup:
- System State

- Boot Partition

- System Partition

- All GPOs (by using GPMC)

- Scripts etc.

Do NOT use a VM snapshot as backup!
Backup

As an extra security measure:

- Consider disconnecting one DC in addition to
backing up.

- Consider disabling outbound replication on the
Schema Master DC during the Schema upgrade.

repadmin /options <server_name>
+/-disable_outbound_repl
Backup

What's the tombstone lifetime (TSL)?

- Default up to Windows Server 2003 R2 = 60 days,
for later = 180 days

- If Forest is upgraded, TSL is not automatically
changed

dsquery * “cn=directory service,cn=windows
nt,cn=services,cn=configuration,dc=contoso,
dc=com” –scope base –attr tombstonelifetime
Permissions

Make sure the user you're working with is a
member of:

- Domain Admins

- Enterprise Admins

- Schema Admins
Previous Operating Systems

Make sure DFL and FFL are Windows 2000 Native
or above.
If they exist, all Windows 2000 DCs must be running
SP4.
- Issues with Win9X/NT4.0 client computers:
http://support.microsoft.com/kb/555038
http://support.microsoft.com/kb/946405
http://support.microsoft.com/kb/942564
- Issues with External Trusts to NT4.0 domains:
http://support.microsoft.com/kb/2021766
Domain and Forest


Check the overall health of the existing AD:
   – Replication
   – DNS
   – Events
   – Logs
Find FSMO holders:
   – netdom query fsmo
Consider temporarily disabling AV on the DCs.
Execute – Schema upgrade

Schema upgrade is a one-way process!
- Needs to run once per forest.
- On the existing Schema Master, insert the
Windows Server 2008 R2 media, go to
x:supportadprep:
adprep.exe /forestprep
or
adprep32.exe /forestprep
- When finished, wait for replication.
Verify – Schema upgrade

- Check version:
dsquery * “cn=ActiveDirectoryUpdate,
cn=ForestUpdates,cn=configuration,dc=contoso,
dc=com” -scope base -attr revision
(should be 5 for 2008 R2)
dsquery * “cn=schema,cn=configuration,dc=contoso,
dc=com” -scope base -attr objectversion
(should be 47 for 2008 R2)
- Verify replication
repadmin /replsum /bysrc /bydest /sort:delta
Execute – Domain preparation

- Needs to run once for each to-be upgraded
domain in the forest.
- On the existing Infrastructure Master:
adprep.exe /domainprep (/gpprep)
or
adprep32.exe /domainprep (/gpprep)
Verify – Domain preparation

- Check version:
dsquery * “cn=ActiveDirectoryUpdate,cn=DomainUpdates,
cn=system,dc=contoso,dc=com” -scope base -attr revision
(should be 5 for 2008 R2)
Execute – RODC preparation

- Only needs to run once per forest, but needs to
be able to connect to all Infrastructure Masters in all
the domains in the forest.
- On any existing DC:
adprep.exe /rodcprep
or
adprep32.exe /rodcprep
http://support.microsoft.com/kb/949257
Verify – RODC preparation

Check version:
dsquery * “cn=ActivedirectoryRodcUpdate,
cn=ForestUpdates,cn=configuration,
dc=contoso,dc=com” -scope base -attr revision
(should be 2)
Demo
- Preparing the forest and domain for the first Windows
Server 2008 R2 DC.
Action


- Promote the first Windows Server 2008 R2 DC.
- Move relevant roles
     – DHCP
     – DNS
     – WINS
- Transfer FSMO
- If needed, point relevant applications to new DC.
Names and IP addresses

Is it simpler to
                    1. New DCs, new
keep the old DC’s                     Simplest
                    names, new IPs
name and/or IP
address?
                    2. New DCs, new   Medium
Possible options:   names, old IPs    complexity


                    3. New DCs, old   May be more
                    names, old IPs    complex
New DCs, old names and IPs


Option 1:                 Problems:
- Demote old DC           - What do you do with the
Give name and IP to the   FSMO roles and other roles
new server                on the old DC?
- Promote new server to   - DNS, DHCP etc. may not
DC (+GC)                  function for a while.
New DCs, old names and IPs


Option 2:
- Give new server a temp. name and temp. IP
- Promote new server to DC (+GC)
- Move DNS, DHCP etc.
                   ,
- Rename old DC to alt. name and assign alt. IP
- Rename new DC to old name, assign old IP
- Transfer FSMO
- Demote old DC (you may want to wait a few days)

To rename a DC – you must use netdom.exe
Check everything is ok

Always wait for KCC (15-30 minutes).
If replication topology is complex – wait for
replication for as long as it takes.
Before you demote old DC, make sure new DC is
functioning:
- Check replication
- Check SYSVOL
- Check events
Time synchronization

PDC Emulator of the Forest Root
Domain is responsible for time
                                           Servers and
keeping.
                                           workstations pull
If not properly configured – Event ID 12
(W32Time).
                                           from DCs.
http://support.microsoft.com/kb/816042

PDC Emulators of
other domains in forest                    Never pull time
pull time from FRD      DCs pull time      from host if using
PDCE.                   from PDCEs.        virtualization!
Time synchronization

- Configuration for FRD PDCE:
w32tm /config /update /manualpeerlist:"timeserver.iix.net.il"
/syncfromflags:manual
net stop w32time && net start w32time
w32tm /resync
- Check HKLM/SYS/CCS/Services/W32Time/Config >
AnnounceFlags = 10 (Decimal)
- If you get an error, check that UDP port 123 is open
through the FW:
portqry -n timeserver.iix.net.il -e 123 -p udp
Some additional tips


- Never clone a DC operating system!
- Remember Windows Server 2008 R2
issues a random computer name by default
- Do NOT disable IPv6
http://support.microsoft.com/kb/929852
- Configure Windows Update
- Secure the server(s)
Some additional tips


- Configure Anti-Virus exclusions
http://support.microsoft.com/kb/822158
- Configure backups
- Do not use snapshots for virtual DCs
- Do not pause/resume virtual DCs
- If on VMs, exclude DCs from Live
Migration or vMotion
Removing old DCs


Take your time                           If demoting is
to test.             If all = ok, demote unsuccessful –
                     old DCs one by one consider forcing
                     (dcpromo.exe).      (/forceremoval)
Consider shutting
down old DC(s) for   If demoting was unsuccessful – you must
a few days (the      clean AD from old DC remains
“who did it???!”     (ntdsutil.exe)
effect).             http://support.microsoft.com/kb/216498
Raising DFL and FFL

Domain Function Level:
- Active Directory Users and Computers
Check version:
dsquery * “dc=contoso,dc=com” -scope base -attr msDS-Behavior-Version
(should be 2 for 2003, 4 for 2008 R2)
Forest Function Level:
- Active Directory Domains and Trusts
Check version:
dsquery * “cn=partitions,cn=configuration,dc=contoso,dc=com” -scope base
-attr msDS-Behavior-Version
(should be 2 for 2003, 4 for 2008 R2)
Demo
- Adding the first Windows Server 2008 R2 DC.
- Removing the old Windows Server 2003 DC.
- Raising DFL/FFL.
Conclusion


Upgrading your
AD to Windows
Server 2008 R2 is   Plan and test
important even if   before you move.
you do not plan
to use any of the
benefits.
Upgrading is not    Verify and clean   More sessions on
rocket science.     after you move.    AD will follow…
Upgrading AD from Windows Server 2003 to Windows Server 2008 R2

More Related Content

What's hot (20)

PPTX
Ch18 - Service Oriented Software Engineering
Harsh Verdhan Raj
 
PPTX
Virtualization
Kingston Smiler
 
PPTX
Veeam Solutions for SMB_2022.pptx
Prince Joseph
 
PPTX
Virtualization security threats in cloud computing
Nitish Awasthi (anitish_225)
 
PDF
The Data Distribution Service
Angelo Corsaro
 
PPTX
Understanding Azure Disaster Recovery
New Horizons Ireland
 
PDF
physical-security (1).pdf
CanlasJohnMichael
 
PPTX
Azure vnet
zekeLabs Technologies
 
PPTX
Cloud Computing : Security and Forensics
Govind Maheswaran
 
PPTX
Monitoring with Dynatrace Presentation.pptx
Knoldus Inc.
 
PPTX
Migration into a Cloud
Divya S
 
PPTX
Cloud security Presentation
Ajay p
 
PDF
tcp cloud - Advanced Cloud Computing
MarketingArrowECS_CZ
 
PPTX
Virtualization 101: Everything You Need To Know To Get Started With VMware
Datapath Consulting
 
PPTX
Cloud Computing and Vertualization
Reach Chirag
 
PPT
Operating-System Structures
K Gowsic Gowsic
 
PPT
Cloud computing & service level agreements
Cade Zvavanjanja
 
PDF
NF101: Nutanix 101
NEXTtour
 
PPT
VMware Virtualization
Ashwani Kumar
 
Ch18 - Service Oriented Software Engineering
Harsh Verdhan Raj
 
Virtualization
Kingston Smiler
 
Veeam Solutions for SMB_2022.pptx
Prince Joseph
 
Virtualization security threats in cloud computing
Nitish Awasthi (anitish_225)
 
The Data Distribution Service
Angelo Corsaro
 
Understanding Azure Disaster Recovery
New Horizons Ireland
 
physical-security (1).pdf
CanlasJohnMichael
 
Cloud Computing : Security and Forensics
Govind Maheswaran
 
Monitoring with Dynatrace Presentation.pptx
Knoldus Inc.
 
Migration into a Cloud
Divya S
 
Cloud security Presentation
Ajay p
 
tcp cloud - Advanced Cloud Computing
MarketingArrowECS_CZ
 
Virtualization 101: Everything You Need To Know To Get Started With VMware
Datapath Consulting
 
Cloud Computing and Vertualization
Reach Chirag
 
Operating-System Structures
K Gowsic Gowsic
 
Cloud computing & service level agreements
Cade Zvavanjanja
 
NF101: Nutanix 101
NEXTtour
 
VMware Virtualization
Ashwani Kumar
 

Viewers also liked (16)

PPTX
System Center Orchestrator 2012 Overview
Amit Gatenyo
 
PPTX
Windows Server 2003-2008 Domain Upgrade
Serhad MAKBULOĞLU, MBA
 
PDF
Install Itim5.1
guestcb9c4392
 
PDF
Blue Medora IBM Tivoli Monitoring (ITM) Agent for Ping Probe
Blue Medora
 
PPT
Fantastic Slide on z-Operations Analytics Solution from IBM
Luigi Tommaseo
 
PPTX
Netcool OMNIbus Customer Case
IBM Danmark
 
PDF
Ibm tivoli monitoring version 5.1.1 creating resource models and providers sg...
Banking at Ho Chi Minh city
 
PDF
Integration guide for ibm tivoli netcool omn ibus, ibm tivoli network manager...
Banking at Ho Chi Minh city
 
PDF
IBM SmartCloud Orchestrator
Anna Landolfi
 
PDF
Jazz for Service Management - OMNIbus
IBM_BSM
 
PPT
IBM Monitoring and Event Management Solutions
IBM Danmark
 
PPTX
IBM Netcool Operations Insight
Tulsie Narine
 
PDF
Ibm connections 5.0 installation step-by-step (windows and tds)
Fuangwith Sopharath
 
PPTX
Windows Server 2008 Active Directory
anilinvns
 
PPT
Windows Server 2008 R2 Overview
Alexander Schek
 
PPT
Active Directory
Sandeep Kapadane
 
System Center Orchestrator 2012 Overview
Amit Gatenyo
 
Windows Server 2003-2008 Domain Upgrade
Serhad MAKBULOĞLU, MBA
 
Install Itim5.1
guestcb9c4392
 
Blue Medora IBM Tivoli Monitoring (ITM) Agent for Ping Probe
Blue Medora
 
Fantastic Slide on z-Operations Analytics Solution from IBM
Luigi Tommaseo
 
Netcool OMNIbus Customer Case
IBM Danmark
 
Ibm tivoli monitoring version 5.1.1 creating resource models and providers sg...
Banking at Ho Chi Minh city
 
Integration guide for ibm tivoli netcool omn ibus, ibm tivoli network manager...
Banking at Ho Chi Minh city
 
IBM SmartCloud Orchestrator
Anna Landolfi
 
Jazz for Service Management - OMNIbus
IBM_BSM
 
IBM Monitoring and Event Management Solutions
IBM Danmark
 
IBM Netcool Operations Insight
Tulsie Narine
 
Ibm connections 5.0 installation step-by-step (windows and tds)
Fuangwith Sopharath
 
Windows Server 2008 Active Directory
anilinvns
 
Windows Server 2008 R2 Overview
Alexander Schek
 
Active Directory
Sandeep Kapadane
 
Ad

Similar to Upgrading AD from Windows Server 2003 to Windows Server 2008 R2 (20)

PPT
Moving to ws2003
Sumit Tambe
 
PPTX
Active Directory 2008 R2 Updates
Amit Gatenyo
 
DOC
Technical interview questions -networking
rafiq123
 
PPTX
Ws08 R2 Itpro Session 1 Technical Overview Part1
chenley
 
PDF
Session 3 - Windows Server 2012 with Jared Thibodeau
CTE Solutions Inc.
 
PDF
Case Project 12-2 Devising an AD DS Design with RODC, AD RMS, and A.pdf
Amansupan
 
PPTX
Setting up computer servers (sucs)
Melchor Maravillas
 
PPTX
MCSA 70-412 Chapter 04
Computer Networking
 
PPTX
teste
mvpjordao
 
PPTX
Essa lab week 1
Raphael Chia
 
PPTX
Domain Controller Critical Services
Jani Sabtriady
 
PDF
Jetking questions and answers 8.5x11
sunil kumar
 
PPTX
70-410 Practice Test
wrailebo
 
DOCX
21 revise.docxinformationtechnologymsproject
alyssajagroop
 
PPTX
Installation and Adminstration of AD_MVP Padman
Quek Lilian
 
PPTX
17 roles of window server 2008 r2
IGZ Software house
 
DOC
Technicalinterviewquestions networking-110511035112-phpapp01
sumit upadhyay
 
PPT
Ad disasters & how to prevent them
Concentrated Technology
 
DOCX
Windows 2003 Server
Teja Bheemanapally
 
PPTX
Migration Demo.pptx
AhmadShah701361
 
Moving to ws2003
Sumit Tambe
 
Active Directory 2008 R2 Updates
Amit Gatenyo
 
Technical interview questions -networking
rafiq123
 
Ws08 R2 Itpro Session 1 Technical Overview Part1
chenley
 
Session 3 - Windows Server 2012 with Jared Thibodeau
CTE Solutions Inc.
 
Case Project 12-2 Devising an AD DS Design with RODC, AD RMS, and A.pdf
Amansupan
 
Setting up computer servers (sucs)
Melchor Maravillas
 
MCSA 70-412 Chapter 04
Computer Networking
 
teste
mvpjordao
 
Essa lab week 1
Raphael Chia
 
Domain Controller Critical Services
Jani Sabtriady
 
Jetking questions and answers 8.5x11
sunil kumar
 
70-410 Practice Test
wrailebo
 
21 revise.docxinformationtechnologymsproject
alyssajagroop
 
Installation and Adminstration of AD_MVP Padman
Quek Lilian
 
17 roles of window server 2008 r2
IGZ Software house
 
Technicalinterviewquestions networking-110511035112-phpapp01
sumit upadhyay
 
Ad disasters & how to prevent them
Concentrated Technology
 
Windows 2003 Server
Teja Bheemanapally
 
Migration Demo.pptx
AhmadShah701361
 
Ad

More from Amit Gatenyo (20)

PPTX
System Center 2012 R2 Configuration Manager (SCCM) with Windows Intune
Amit Gatenyo
 
PPTX
ענן פרטי וענן ציבורי: לא שני עולמות מתחרים אלא שני מימדים לאותו העולם
Amit Gatenyo
 
PPTX
Hybrid Cloud – Live Demo
Amit Gatenyo
 
PPTX
RemoteFX & RDS in Windows Server 2012
Amit Gatenyo
 
PPTX
Asset Management & Service Manager 2012
Amit Gatenyo
 
PPTX
Windows 2012 Technical Overview
Amit Gatenyo
 
PDF
Hyper-V Best Practices & Tips and Tricks
Amit Gatenyo
 
PPTX
Getting the most out of RDS (Terminal Services)
Amit Gatenyo
 
PPTX
System Center 2012 Overview
Amit Gatenyo
 
PPTX
SCOM 2012 & SCCM 2012
Amit Gatenyo
 
PPTX
System Center Configuration Manager 2012 Overview
Amit Gatenyo
 
PPTX
System Center Data Protection Manager 2012 Overview
Amit Gatenyo
 
PPTX
RemoteFX - Rich End User Experience for VDI and Remote Desktops
Amit Gatenyo
 
PPTX
System Center Datacenter Cloud Management Vision & Roadmap
Amit Gatenyo
 
PPTX
System Center 2012 Technical Overview
Amit Gatenyo
 
PPTX
System Center Service Manager 2012 Overview
Amit Gatenyo
 
PPTX
System Center Virtual Machine Manager 2012 - Whats New
Amit Gatenyo
 
PPTX
Microsoft Private Cloud Strategy
Amit Gatenyo
 
PPTX
System Center Operations Manager 2012 Overview
Amit Gatenyo
 
PPTX
Windows Server 2008 R2 & SP1 for IT Pro's
Amit Gatenyo
 
System Center 2012 R2 Configuration Manager (SCCM) with Windows Intune
Amit Gatenyo
 
ענן פרטי וענן ציבורי: לא שני עולמות מתחרים אלא שני מימדים לאותו העולם
Amit Gatenyo
 
Hybrid Cloud – Live Demo
Amit Gatenyo
 
RemoteFX & RDS in Windows Server 2012
Amit Gatenyo
 
Asset Management & Service Manager 2012
Amit Gatenyo
 
Windows 2012 Technical Overview
Amit Gatenyo
 
Hyper-V Best Practices & Tips and Tricks
Amit Gatenyo
 
Getting the most out of RDS (Terminal Services)
Amit Gatenyo
 
System Center 2012 Overview
Amit Gatenyo
 
SCOM 2012 & SCCM 2012
Amit Gatenyo
 
System Center Configuration Manager 2012 Overview
Amit Gatenyo
 
System Center Data Protection Manager 2012 Overview
Amit Gatenyo
 
RemoteFX - Rich End User Experience for VDI and Remote Desktops
Amit Gatenyo
 
System Center Datacenter Cloud Management Vision & Roadmap
Amit Gatenyo
 
System Center 2012 Technical Overview
Amit Gatenyo
 
System Center Service Manager 2012 Overview
Amit Gatenyo
 
System Center Virtual Machine Manager 2012 - Whats New
Amit Gatenyo
 
Microsoft Private Cloud Strategy
Amit Gatenyo
 
System Center Operations Manager 2012 Overview
Amit Gatenyo
 
Windows Server 2008 R2 & SP1 for IT Pro's
Amit Gatenyo
 

Recently uploaded (20)

PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 

Upgrading AD from Windows Server 2003 to Windows Server 2008 R2

  • 1. Upgrading AD from Windows Server 2003 to Windows Server 2008 R2 Daniel Petri ([email protected]) Senior Premier Field Engineer, Microsoft
  • 2. Agenda Why upgrade? Prepare Action Plan Cleanup
  • 3. Why Upgrade your servers In relation to Active Directory: - RODC - Server Core - AD Snapshots (ntdsutil.exe, dsamain.exe) - DS Auditing (auditpol.exe) - Restartable AD service - Administrative Center - PowerShell Cmdlts - AD Best Practice Analyzer - Protect from accidental deletion - GPO benefits - Support lifecycle
  • 4. Why Upgrade your DCs Windows 2008 Domain Windows 2008 R2 Function Level Domain Function Level - Authentication mechanism - DFSR replication of Sysvol assurance (dfsrmig.exe) for AD-FS - Advanced Encryption Services (AES - Managed Service Accounts 128 and 256) for Kerberos (MSA) - Last Interactive Logon Information - Fine-Grained Password Policy Windows 2008 R2 Forest - Personal Virtual Desktops Function Level - Offline Domain Join (djoin.exe) - AD Recycle Bin
  • 5. Plan What are the upgrade goals? Map existing resources What other roles do DCs perform? Map the risks Can you consolidate? Can you virtualize? Should you virtualize? Plan for rollback
  • 6. Identify potential issues This is mostly because DES encryption types for the Kerberos authentication protocol are disabled by default in Windows Server 2008/R2. – SAP – Oracle Internet Directory (OID), CA Identity Manager, Tivoli Identity Management – Samba and other Linux/Unix interoperability – NetApp, EMC Celera or other storage devices – Firewalls, VPN, RADIUS – http://support.microsoft.com/kb/977321
  • 7. Identify potential issues Additional considerations: – Terminal Server License Server on a DC – CA on a DC – Smart Cards – Customized password filters – Time keeping software – 3rd-party apps that are hard coded to work against specific DCs – Exchange servers with manual DC configuration
  • 8. Test - The bigger and more complex you are, the more you need to test before you act. - Consider regulations and standards (such as Change Management procedures) - Test environment needs to be as close to production as possible. - Test and production need to be totally isolated from each other.
  • 9. Backup Make sure you have a recent, supported and working backup: - System State - Boot Partition - System Partition - All GPOs (by using GPMC) - Scripts etc. Do NOT use a VM snapshot as backup!
  • 10. Backup As an extra security measure: - Consider disconnecting one DC in addition to backing up. - Consider disabling outbound replication on the Schema Master DC during the Schema upgrade. repadmin /options <server_name> +/-disable_outbound_repl
  • 11. Backup What's the tombstone lifetime (TSL)? - Default up to Windows Server 2003 R2 = 60 days, for later = 180 days - If Forest is upgraded, TSL is not automatically changed dsquery * “cn=directory service,cn=windows nt,cn=services,cn=configuration,dc=contoso, dc=com” –scope base –attr tombstonelifetime
  • 12. Permissions Make sure the user you're working with is a member of: - Domain Admins - Enterprise Admins - Schema Admins
  • 13. Previous Operating Systems Make sure DFL and FFL are Windows 2000 Native or above. If they exist, all Windows 2000 DCs must be running SP4. - Issues with Win9X/NT4.0 client computers: http://support.microsoft.com/kb/555038 http://support.microsoft.com/kb/946405 http://support.microsoft.com/kb/942564 - Issues with External Trusts to NT4.0 domains: http://support.microsoft.com/kb/2021766
  • 14. Domain and Forest Check the overall health of the existing AD: – Replication – DNS – Events – Logs Find FSMO holders: – netdom query fsmo Consider temporarily disabling AV on the DCs.
  • 15. Execute – Schema upgrade Schema upgrade is a one-way process! - Needs to run once per forest. - On the existing Schema Master, insert the Windows Server 2008 R2 media, go to x:supportadprep: adprep.exe /forestprep or adprep32.exe /forestprep - When finished, wait for replication.
  • 16. Verify – Schema upgrade - Check version: dsquery * “cn=ActiveDirectoryUpdate, cn=ForestUpdates,cn=configuration,dc=contoso, dc=com” -scope base -attr revision (should be 5 for 2008 R2) dsquery * “cn=schema,cn=configuration,dc=contoso, dc=com” -scope base -attr objectversion (should be 47 for 2008 R2) - Verify replication repadmin /replsum /bysrc /bydest /sort:delta
  • 17. Execute – Domain preparation - Needs to run once for each to-be upgraded domain in the forest. - On the existing Infrastructure Master: adprep.exe /domainprep (/gpprep) or adprep32.exe /domainprep (/gpprep)
  • 18. Verify – Domain preparation - Check version: dsquery * “cn=ActiveDirectoryUpdate,cn=DomainUpdates, cn=system,dc=contoso,dc=com” -scope base -attr revision (should be 5 for 2008 R2)
  • 19. Execute – RODC preparation - Only needs to run once per forest, but needs to be able to connect to all Infrastructure Masters in all the domains in the forest. - On any existing DC: adprep.exe /rodcprep or adprep32.exe /rodcprep http://support.microsoft.com/kb/949257
  • 20. Verify – RODC preparation Check version: dsquery * “cn=ActivedirectoryRodcUpdate, cn=ForestUpdates,cn=configuration, dc=contoso,dc=com” -scope base -attr revision (should be 2)
  • 21. Demo - Preparing the forest and domain for the first Windows Server 2008 R2 DC.
  • 22. Action - Promote the first Windows Server 2008 R2 DC. - Move relevant roles – DHCP – DNS – WINS - Transfer FSMO - If needed, point relevant applications to new DC.
  • 23. Names and IP addresses Is it simpler to 1. New DCs, new keep the old DC’s Simplest names, new IPs name and/or IP address? 2. New DCs, new Medium Possible options: names, old IPs complexity 3. New DCs, old May be more names, old IPs complex
  • 24. New DCs, old names and IPs Option 1: Problems: - Demote old DC - What do you do with the Give name and IP to the FSMO roles and other roles new server on the old DC? - Promote new server to - DNS, DHCP etc. may not DC (+GC) function for a while.
  • 25. New DCs, old names and IPs Option 2: - Give new server a temp. name and temp. IP - Promote new server to DC (+GC) - Move DNS, DHCP etc. , - Rename old DC to alt. name and assign alt. IP - Rename new DC to old name, assign old IP - Transfer FSMO - Demote old DC (you may want to wait a few days) To rename a DC – you must use netdom.exe
  • 26. Check everything is ok Always wait for KCC (15-30 minutes). If replication topology is complex – wait for replication for as long as it takes. Before you demote old DC, make sure new DC is functioning: - Check replication - Check SYSVOL - Check events
  • 27. Time synchronization PDC Emulator of the Forest Root Domain is responsible for time Servers and keeping. workstations pull If not properly configured – Event ID 12 (W32Time). from DCs. http://support.microsoft.com/kb/816042 PDC Emulators of other domains in forest Never pull time pull time from FRD DCs pull time from host if using PDCE. from PDCEs. virtualization!
  • 28. Time synchronization - Configuration for FRD PDCE: w32tm /config /update /manualpeerlist:"timeserver.iix.net.il" /syncfromflags:manual net stop w32time && net start w32time w32tm /resync - Check HKLM/SYS/CCS/Services/W32Time/Config > AnnounceFlags = 10 (Decimal) - If you get an error, check that UDP port 123 is open through the FW: portqry -n timeserver.iix.net.il -e 123 -p udp
  • 29. Some additional tips - Never clone a DC operating system! - Remember Windows Server 2008 R2 issues a random computer name by default - Do NOT disable IPv6 http://support.microsoft.com/kb/929852 - Configure Windows Update - Secure the server(s)
  • 30. Some additional tips - Configure Anti-Virus exclusions http://support.microsoft.com/kb/822158 - Configure backups - Do not use snapshots for virtual DCs - Do not pause/resume virtual DCs - If on VMs, exclude DCs from Live Migration or vMotion
  • 31. Removing old DCs Take your time If demoting is to test. If all = ok, demote unsuccessful – old DCs one by one consider forcing (dcpromo.exe). (/forceremoval) Consider shutting down old DC(s) for If demoting was unsuccessful – you must a few days (the clean AD from old DC remains “who did it???!” (ntdsutil.exe) effect). http://support.microsoft.com/kb/216498
  • 32. Raising DFL and FFL Domain Function Level: - Active Directory Users and Computers Check version: dsquery * “dc=contoso,dc=com” -scope base -attr msDS-Behavior-Version (should be 2 for 2003, 4 for 2008 R2) Forest Function Level: - Active Directory Domains and Trusts Check version: dsquery * “cn=partitions,cn=configuration,dc=contoso,dc=com” -scope base -attr msDS-Behavior-Version (should be 2 for 2003, 4 for 2008 R2)
  • 33. Demo - Adding the first Windows Server 2008 R2 DC. - Removing the old Windows Server 2003 DC. - Raising DFL/FFL.
  • 34. Conclusion Upgrading your AD to Windows Server 2008 R2 is Plan and test important even if before you move. you do not plan to use any of the benefits. Upgrading is not Verify and clean More sessions on rocket science. after you move. AD will follow…