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

PPT
Systemtap
PDF
Automation with ansible
PDF
KCSA Kubernetes and Cloud Native Security Associate Exam Preparation
PPTX
Ansible presentation
ODP
VPC Implementation In OpenStack Heat
PDF
Private PaaS with Docker, spring cloud and mesos
PDF
Open vSwitch - Stateful Connection Tracking & Stateful NAT
PDF
IT Automation with Ansible
Systemtap
Automation with ansible
KCSA Kubernetes and Cloud Native Security Associate Exam Preparation
Ansible presentation
VPC Implementation In OpenStack Heat
Private PaaS with Docker, spring cloud and mesos
Open vSwitch - Stateful Connection Tracking & Stateful NAT
IT Automation with Ansible

What's hot (20)

PDF
Ansible-cours .pdf
PDF
VPNaaS in Neutron
PDF
Ansible - Introduction
PPTX
Introduction to Ansible
PDF
Docker Introduction
PDF
DPDKを拡張してみた話し
PPTX
Amazon EKS によるスマホゲームのバックエンド運用事例
PPTX
Hands on ansible
PPTX
Microsoft Hyper-V
PDF
ECM Decision Matrix - Deciding Between Alfresco Community Edition, Alfresco E...
PDF
Docker란 무엇인가? : Docker 기본 사용법
PPTX
Linux Interrupts
PPTX
Docker, LinuX Container
PDF
Rapport administration systèmes et supervision réseaux tp4 diabang master1 tr
PDF
OSTree: OSイメージとパッケージシステムの間にGitのアプローチを
PPTX
Everything You Need To Know About Persistent Storage in Kubernetes
PDF
Introduction to Docker - VIT Campus
PDF
OCIv2?!軽量高速なイケてる次世代イメージ仕様の最新動向を抑えよう!
PDF
An introduction to the linux kernel and device drivers (NTU CSIE 2016.03)
PDF
OCIランタイムの筆頭「runc」を俯瞰する
Ansible-cours .pdf
VPNaaS in Neutron
Ansible - Introduction
Introduction to Ansible
Docker Introduction
DPDKを拡張してみた話し
Amazon EKS によるスマホゲームのバックエンド運用事例
Hands on ansible
Microsoft Hyper-V
ECM Decision Matrix - Deciding Between Alfresco Community Edition, Alfresco E...
Docker란 무엇인가? : Docker 기본 사용법
Linux Interrupts
Docker, LinuX Container
Rapport administration systèmes et supervision réseaux tp4 diabang master1 tr
OSTree: OSイメージとパッケージシステムの間にGitのアプローチを
Everything You Need To Know About Persistent Storage in Kubernetes
Introduction to Docker - VIT Campus
OCIv2?!軽量高速なイケてる次世代イメージ仕様の最新動向を抑えよう!
An introduction to the linux kernel and device drivers (NTU CSIE 2016.03)
OCIランタイムの筆頭「runc」を俯瞰する
Ad

Viewers also liked (16)

PPTX
System Center Orchestrator 2012 Overview
PPTX
Windows Server 2003-2008 Domain Upgrade
PDF
Install Itim5.1
PDF
Blue Medora IBM Tivoli Monitoring (ITM) Agent for Ping Probe
PPT
Fantastic Slide on z-Operations Analytics Solution from IBM
PPTX
Netcool OMNIbus Customer Case
PDF
Ibm tivoli monitoring version 5.1.1 creating resource models and providers sg...
PDF
Integration guide for ibm tivoli netcool omn ibus, ibm tivoli network manager...
PDF
IBM SmartCloud Orchestrator
PDF
Jazz for Service Management - OMNIbus
PPT
IBM Monitoring and Event Management Solutions
PPTX
IBM Netcool Operations Insight
PDF
Ibm connections 5.0 installation step-by-step (windows and tds)
PPTX
Windows Server 2008 Active Directory
PPT
Windows Server 2008 R2 Overview
PPT
Active Directory
System Center Orchestrator 2012 Overview
Windows Server 2003-2008 Domain Upgrade
Install Itim5.1
Blue Medora IBM Tivoli Monitoring (ITM) Agent for Ping Probe
Fantastic Slide on z-Operations Analytics Solution from IBM
Netcool OMNIbus Customer Case
Ibm tivoli monitoring version 5.1.1 creating resource models and providers sg...
Integration guide for ibm tivoli netcool omn ibus, ibm tivoli network manager...
IBM SmartCloud Orchestrator
Jazz for Service Management - OMNIbus
IBM Monitoring and Event Management Solutions
IBM Netcool Operations Insight
Ibm connections 5.0 installation step-by-step (windows and tds)
Windows Server 2008 Active Directory
Windows Server 2008 R2 Overview
Active Directory
Ad

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

PPT
Moving to ws2003
PDF
Active Directory Upgrade
PPTX
Active Directory 2008 R2 Updates
DOC
Technical interview questions -networking
PPTX
Ws08 R2 Itpro Session 1 Technical Overview Part1
PDF
Session 3 - Windows Server 2012 with Jared Thibodeau
PDF
Case Project 12-2 Devising an AD DS Design with RODC, AD RMS, and A.pdf
PPTX
Setting up computer servers (sucs)
PPTX
MCSA 70-412 Chapter 04
PPTX
teste
PPTX
Essa lab week 1
PPTX
Domain Controller Critical Services
PDF
Jetking questions and answers 8.5x11
PPTX
70-410 Practice Test
DOCX
21 revise.docxinformationtechnologymsproject
PPTX
Installation and Adminstration of AD_MVP Padman
PPTX
17 roles of window server 2008 r2
DOC
Technicalinterviewquestions networking-110511035112-phpapp01
PPT
Ad disasters & how to prevent them
DOCX
Windows 2003 Server
Moving to ws2003
Active Directory Upgrade
Active Directory 2008 R2 Updates
Technical interview questions -networking
Ws08 R2 Itpro Session 1 Technical Overview Part1
Session 3 - Windows Server 2012 with Jared Thibodeau
Case Project 12-2 Devising an AD DS Design with RODC, AD RMS, and A.pdf
Setting up computer servers (sucs)
MCSA 70-412 Chapter 04
teste
Essa lab week 1
Domain Controller Critical Services
Jetking questions and answers 8.5x11
70-410 Practice Test
21 revise.docxinformationtechnologymsproject
Installation and Adminstration of AD_MVP Padman
17 roles of window server 2008 r2
Technicalinterviewquestions networking-110511035112-phpapp01
Ad disasters & how to prevent them
Windows 2003 Server

More from Amit Gatenyo (20)

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

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Cloud computing and distributed systems.
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Approach and Philosophy of On baking technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Modernizing your data center with Dell and AMD
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPT
Teaching material agriculture food technology
“AI and Expert System Decision Support & Business Intelligence Systems”
Encapsulation_ Review paper, used for researhc scholars
Empathic Computing: Creating Shared Understanding
Cloud computing and distributed systems.
Digital-Transformation-Roadmap-for-Companies.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Agricultural_Statistics_at_a_Glance_2022_0.pdf
cuic standard and advanced reporting.pdf
Electronic commerce courselecture one. Pdf
Approach and Philosophy of On baking technology
The AUB Centre for AI in Media Proposal.docx
Spectral efficient network and resource selection model in 5G networks
Modernizing your data center with Dell and AMD
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Network Security Unit 5.pdf for BCA BBA.
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Teaching material agriculture food technology

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 (dpetri@microsoft.com) 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…