![](https://static.wixstatic.com/media/68165d_59f4d397cd97405badf726e0f8d5c431~mv2.png/v1/fill/w_578,h_252,al_c,q_85,enc_auto/68165d_59f4d397cd97405badf726e0f8d5c431~mv2.png)
Step 1: Upgrade Schema Version 47 to 69
Bỏ đĩa cài đặt server 2012 vào server 2008.
Trên server 2008 mở cmd với quyền Administrator, di chuyển đến ổ đĩa chứa source cài server 2012
![](https://static.wixstatic.com/media/68165d_c7daab1497fb4a1fb0907ddcb4798bee~mv2.png/v1/fill/w_849,h_445,al_c,q_90,enc_auto/68165d_c7daab1497fb4a1fb0907ddcb4798bee~mv2.png)
>d:
>cd support\adprep
![](https://static.wixstatic.com/media/68165d_29ca1fda402e44cda2a02756003c4e08~mv2.png/v1/fill/w_669,h_331,al_c,q_85,enc_auto/68165d_29ca1fda402e44cda2a02756003c4e08~mv2.png)
>adprep /forestprep
![](https://static.wixstatic.com/media/68165d_f489399efbfc4c0aa35e62a287aa34b4~mv2.png/v1/fill/w_672,h_333,al_c,q_85,enc_auto/68165d_f489399efbfc4c0aa35e62a287aa34b4~mv2.png)
Nhập c rồi bấm enter
![](https://static.wixstatic.com/media/68165d_54557f75812749d4826e2d45a46ac5e9~mv2.png/v1/fill/w_679,h_331,al_c,q_85,enc_auto/68165d_54557f75812749d4826e2d45a46ac5e9~mv2.png)
![](https://static.wixstatic.com/media/68165d_9b8ef83f5e26415cb6dd5c9224d88cad~mv2.png/v1/fill/w_666,h_333,al_c,q_85,enc_auto/68165d_9b8ef83f5e26415cb6dd5c9224d88cad~mv2.png)
Step 2: Cài đặt ADDS trên server 2012
Vào Server Roles > Manage > Add Roles and Features
![](https://static.wixstatic.com/media/68165d_15a6550324774c8d9116f2077bf07aa7~mv2.png/v1/fill/w_779,h_474,al_c,q_90,enc_auto/68165d_15a6550324774c8d9116f2077bf07aa7~mv2.png)
Tick chọn Active Directory Domain Services
![](https://static.wixstatic.com/media/68165d_1d06199e691d4b90bf94842b5fcc05f7~mv2.png/v1/fill/w_796,h_500,al_c,q_90,enc_auto/68165d_1d06199e691d4b90bf94842b5fcc05f7~mv2.png)
Đợi cài role xong vào Promote server 2012
![](https://static.wixstatic.com/media/68165d_164232870d6e4438873d7287d270eaaa~mv2.png/v1/fill/w_776,h_480,al_c,q_90,enc_auto/68165d_164232870d6e4438873d7287d270eaaa~mv2.png)
Nhập domain và password admin trên server 2008
![](https://static.wixstatic.com/media/68165d_6ff1adecc10740bab914443fba423a40~mv2.png/v1/fill/w_782,h_467,al_c,q_90,enc_auto/68165d_6ff1adecc10740bab914443fba423a40~mv2.png)
![](https://static.wixstatic.com/media/68165d_dfe7ce7f2dda4598886aae87d0c7679f~mv2.png/v1/fill/w_444,h_363,al_c,q_85,enc_auto/68165d_dfe7ce7f2dda4598886aae87d0c7679f~mv2.png)
Tạo password restore domain
![](https://static.wixstatic.com/media/68165d_a393305a9c7043ca8a3fe1cbf277bbcf~mv2.png/v1/fill/w_771,h_508,al_c,q_90,enc_auto/68165d_a393305a9c7043ca8a3fe1cbf277bbcf~mv2.png)
Chọn tên của server 2008
![](https://static.wixstatic.com/media/68165d_14d9be484c124c40bb51621a4de9895e~mv2.png/v1/fill/w_776,h_434,al_c,q_85,enc_auto/68165d_14d9be484c124c40bb51621a4de9895e~mv2.png)
Tiếp tục nhấn Next > Install đợi quá trình cài đặt xong server sẽ khởi động lại.
Step 3: Transfer FSMO role từ server 2008 qua 2012
Trên server 2012 vào Server Manager > Tools > Active Directory Domain and Trusts
![](https://static.wixstatic.com/media/68165d_bb24dbd4123f4dc4bafd8af86e678697~mv2.png/v1/fill/w_948,h_502,al_c,q_90,enc_auto/68165d_bb24dbd4123f4dc4bafd8af86e678697~mv2.png)
Click chuột phải vào Active Directory Domain and Trust > Change Active Directory…
![](https://static.wixstatic.com/media/68165d_00d1fba401aa4bf5b52875594afb25e9~mv2.png/v1/fill/w_887,h_498,al_c,q_90,enc_auto/68165d_00d1fba401aa4bf5b52875594afb25e9~mv2.png)
Tick vào ô This Domain Controller or AD… > Chọn name của server 2012 > OK
![](https://static.wixstatic.com/media/68165d_a06604f0c11745bd8585fea0836102d3~mv2.png/v1/fill/w_637,h_433,al_c,q_85,enc_auto/68165d_a06604f0c11745bd8585fea0836102d3~mv2.png)
Click chuột phải vào Active Directory Domain and Trust > Operations Master…
![](https://static.wixstatic.com/media/68165d_78d9ec2f706e4d57b73a05b6ca4cfb7d~mv2.png/v1/fill/w_887,h_498,al_c,q_90,enc_auto/68165d_78d9ec2f706e4d57b73a05b6ca4cfb7d~mv2.png)
Chọn Change > Yes > OK
![](https://static.wixstatic.com/media/68165d_d66676d070a04e7ebede17c3a596a34f~mv2.png/v1/fill/w_394,h_281,al_c,q_85,enc_auto/68165d_d66676d070a04e7ebede17c3a596a34f~mv2.png)
Step 4: Transfer RID, PDC, Infrastructure
Trên server 2012 vào Server Manager > Tools > Active Directory Users and Computers
![](https://static.wixstatic.com/media/68165d_30fb69a135644289b7896d463e5a88fb~mv2.png/v1/fill/w_948,h_502,al_c,q_90,enc_auto/68165d_30fb69a135644289b7896d463e5a88fb~mv2.png)
Click chuột phải vào Active Directory Users and Computer > All Tasks > Change Domain Controller…
![](https://static.wixstatic.com/media/68165d_bda79e2d2530461e922eb885b9fe6972~mv2.png/v1/fill/w_768,h_447,al_c,q_85,enc_auto/68165d_bda79e2d2530461e922eb885b9fe6972~mv2.png)
Tick vào ô This Domain Controller or AD… > Chọn name của server 2012 > OK
![](https://static.wixstatic.com/media/68165d_4a68f98795a94e3288dc8d7e6df75dbc~mv2.png/v1/fill/w_637,h_433,al_c,q_85,enc_auto/68165d_4a68f98795a94e3288dc8d7e6df75dbc~mv2.png)
Click chuột phải vào Active Directory Users and Computer > All Tasks > Operations Maters…
![](https://static.wixstatic.com/media/68165d_700d33f2f44c454385e1749b631e35c9~mv2.png/v1/fill/w_768,h_447,al_c,q_85,enc_auto/68165d_700d33f2f44c454385e1749b631e35c9~mv2.png)
Tab RID bấm Change
Làm tương tự với tab PDC Infrastructure
![](https://static.wixstatic.com/media/68165d_e04f776a06e14747abe63b243dcd05ba~mv2.png/v1/fill/w_415,h_463,al_c,q_85,enc_auto/68165d_e04f776a06e14747abe63b243dcd05ba~mv2.png)
Step 5: Transfer Schema master FSMO role từ server 2008 đến 2012
Trên server 2012 bấm tổ hợp phím Windows Logo + R nhập lệnh: regsvr32 schmmgmt.dll > Enter > OK
![](https://static.wixstatic.com/media/68165d_c996d4a0a9b7428fbe80b06465b9d340~mv2.png/v1/fill/w_427,h_230,al_c,q_85,enc_auto/68165d_c996d4a0a9b7428fbe80b06465b9d340~mv2.png)
![](https://static.wixstatic.com/media/68165d_73ad322afa0a459e932a229d4cee5559~mv2.png/v1/fill/w_366,h_131,al_c,q_85,enc_auto/68165d_73ad322afa0a459e932a229d4cee5559~mv2.png)
Bấm tổ hợp phím Windows Logo + R gõ: mmc
Vào File > Add/Remove Snap-in…
![](https://static.wixstatic.com/media/68165d_14cacce6fa544fc7bf8876a410c85422~mv2.png/v1/fill/w_903,h_360,al_c,q_85,enc_auto/68165d_14cacce6fa544fc7bf8876a410c85422~mv2.png)
Chọn Active Directory Schema > Add > OK
![](https://static.wixstatic.com/media/68165d_7aeedb34ceb4497c94eda038f93c450b~mv2.png/v1/fill/w_690,h_476,al_c,q_85,enc_auto/68165d_7aeedb34ceb4497c94eda038f93c450b~mv2.png)
![](https://static.wixstatic.com/media/68165d_9f4b0df66399442fbf576470c25372db~mv2.png/v1/fill/w_692,h_462,al_c,q_85,enc_auto/68165d_9f4b0df66399442fbf576470c25372db~mv2.png)
Click chuột phải Active Directory Schema > Change Active Directory Domain…
![](https://static.wixstatic.com/media/68165d_3ffe6863da394eaba306ed13cbd0263e~mv2.png/v1/fill/w_893,h_475,al_c,q_90,enc_auto/68165d_3ffe6863da394eaba306ed13cbd0263e~mv2.png)
Tick vào ô This Domain Controller or AD… > Chọn name của server 2012 > OK
![](https://static.wixstatic.com/media/68165d_7c65ce8fbd284e1f87f46bf2c89f4141~mv2.png/v1/fill/w_637,h_433,al_c,q_85,enc_auto/68165d_7c65ce8fbd284e1f87f46bf2c89f4141~mv2.png)
Click chuột phải Active Directory Schema > Operations Master…
![](https://static.wixstatic.com/media/68165d_fb8b157466844401a1357aaa0229a145~mv2.png/v1/fill/w_893,h_475,al_c,q_90,enc_auto/68165d_fb8b157466844401a1357aaa0229a145~mv2.png)
Chọn Change > Yes > OK
![](https://static.wixstatic.com/media/68165d_8eca8af056884a89a514a21cb1570260~mv2.png/v1/fill/w_394,h_281,al_c,q_85,enc_auto/68165d_8eca8af056884a89a514a21cb1570260~mv2.png)
Tắt mcc > No
Step 6: Cài DHCP Server trên server 2012
Vào Server Roles > Manage > Add Roles and Features > Chọn DHCP Server để cài.
Step 7: Migrate DNS role từ server 2008 đến 2012
Trên server 2012 vào card mạng, trỏ Preferred DNS server về chính nó
Trên server 2008 vào DHCP Server chỉnh lại DNS Servers trỏ về ip của server 2012 và chỉnh lại card mạng phần Preferred DNS server trỏ về ip của server 2012
![](https://static.wixstatic.com/media/68165d_6fadd38fa04c44bca7195901dc8693e7~mv2.png/v1/fill/w_405,h_448,al_c,q_85,enc_auto/68165d_6fadd38fa04c44bca7195901dc8693e7~mv2.png)
Step 8: Migrate DHCP role từ server 2008 đến 2012
Trên server 2012 mở Windows Powershell với quyền Administrator gõ các lệnh sau:
Tạo thư mục export trong ổ C:\
> md c:\export
![](https://static.wixstatic.com/media/68165d_0cd1767a291045e0b4981d95f4eb0ce3~mv2.png/v1/fill/w_883,h_226,al_c,q_85,enc_auto/68165d_0cd1767a291045e0b4981d95f4eb0ce3~mv2.png)
Tạo thư mục backup trong C:\export
> md c:\export\backup
![](https://static.wixstatic.com/media/68165d_dee6021f484c4399ba5f73425c079f16~mv2.png/v1/fill/w_875,h_230,al_c,q_85,enc_auto/68165d_dee6021f484c4399ba5f73425c079f16~mv2.png)
Xuất file lease từ server 2008 (srv01.nguyento.local) vào server 2012
> Export-DhcpServer -ComputerName srv01.nguyento.local -Leases -File c:\export\leases.xml -Verbose
![](https://static.wixstatic.com/media/68165d_d22f04b58005400c9548db273023f369~mv2.png/v1/fill/w_880,h_391,al_c,q_85,enc_auto/68165d_d22f04b58005400c9548db273023f369~mv2.png)
Import file lease vào server 2012 (srv02.nguyento.local)
> Import-DhcpServer -ComputerName srv02.nguyento.local -Leases -File C:\export\leases.xml -Verbose
BackupPath: c:\export\backup
Chọn Y > Enter
![](https://static.wixstatic.com/media/68165d_16947581abc046a9bd6c4e535c80313a~mv2.png/v1/fill/w_868,h_268,al_c,q_85,enc_auto/68165d_16947581abc046a9bd6c4e535c80313a~mv2.png)
Trên server 2012 vào Server Manager > Tools > DHCP > Click chuột phải DHCP > Add Server
Tick chọn authorized DHCP server > Chọn server 2008 > OK
![](https://static.wixstatic.com/media/68165d_e730dffaeeb7474eb82269886087ac8d~mv2.png/v1/fill/w_634,h_415,al_c,q_85,enc_auto/68165d_e730dffaeeb7474eb82269886087ac8d~mv2.png)
Click chuột phải server 2008 > Unauthorize > Yes
![](https://static.wixstatic.com/media/68165d_ca098af051884f56837d3210205ab6ad~mv2.png/v1/fill/w_602,h_413,al_c,q_85,enc_auto/68165d_ca098af051884f56837d3210205ab6ad~mv2.png)
Click chuột phải server 2012 > Authorize
![](https://static.wixstatic.com/media/68165d_b00da4980d6a4001ab1e389274df20a3~mv2.png/v1/fill/w_599,h_411,al_c,q_85,enc_auto/68165d_b00da4980d6a4001ab1e389274df20a3~mv2.png)
Click chuột phải vào server 2012 > All Tasks > Restart
![](https://static.wixstatic.com/media/68165d_4962e015ba0f4bb0961cc024bc79ec23~mv2.png/v1/fill/w_601,h_414,al_c,q_85,enc_auto/68165d_4962e015ba0f4bb0961cc024bc79ec23~mv2.png)
Step 9: Demote Server 2008
Vào run gõ dcpromo > Enter
Next > Next
![](https://static.wixstatic.com/media/68165d_29f2cedc0c2c4ba5b219921cabffcd22~mv2.png/v1/fill/w_505,h_474,al_c,q_85,enc_auto/68165d_29f2cedc0c2c4ba5b219921cabffcd22~mv2.png)
Vào gỡ bỏ domain trên server 2008 > Done
![](https://static.wixstatic.com/media/68165d_7fdfa0402aba4fdcb731896d866baa90~mv2.png/v1/fill/w_322,h_368,al_c,q_85,enc_auto/68165d_7fdfa0402aba4fdcb731896d866baa90~mv2.png)
Comments