Windows Server 2012 prompts for a restart when installing WSUS or RDS
PROBLEM
Adding the Remote Desktop Services role or the Windows Server Update Services role fails with the error:
The operation cannot be completed, because the server that you specified requires a restart.
Restarting the server provides no solution.
SOLUTION
The solution is to grant the 'log on as
a service' right to some addition built in accounts. Start the Group
Policy Management Console on your management PC (see the Remote Server Administration Tools download page at Microsoft).
Open the Default Domain Controllers
Policy or your specific server management policy. Open the Computer
Configuration –> Policies –> Windows Settings –> Security
Settings –> Local Policies –> User Rights Assignment branch and
then double click the 'Log on as a service' setting. Add the IIS_WPG,
NETWORK, NETWORK SERVICE, and SERVICE accounts (via the Browse option).
Once these settings have been applied
the server needs to update to the current Group Policy version. On the
server command line you can type
gpupdate /force
Once updated the installation should progress smoothly.
Phần 2: Nguồn: http://blogs.technet.com/b/canitpro/archive/2014/04/02/step-by-step-active-directory-migration-from-windows-server-2003-to-windows-server-2012.aspx
Step-By-Step: Active Directory Migration from Windows Server 2003 to Windows Server 2012 R2
With the end of support for Windows
XP, Office 2003 and Exchange 2003 now upon us, April 8th 2014 to be
exact, attention now turns to Windows Server or specifically Windows
Server 2003. End of support for Windows Server 2003 is
currently slated for July 14th 2015 and a great many organizations
still utilize said offering as the cornerstone to their infrastructure
to this day. One question to keep in mind though is that with the move
on the client end to Windows 8.1, will Windows Server 2003 or 2003 R2 be
robust enough to properly enable employees and provide secure access to
the plethora of devices in a world now dominated by
BYOD? Alternatively an IT administrator might ponder on the further
enablement invoked via the deployment of Windows Server 2012 R2 should
it be deployed in said organization. Lets explore this possibility via
the cornerstone of access enablement offered via Windows Server by
investigating the evolution of the Active Directory offering now found
in Windows Server 2012 R2
As you may know, Active
Directory provides authentication and authorization mechanisms as well
as framework from within other related services that can be deployed. As
an LDAP compliant database, it commonly contains the most used objects
such as users, computers, and groups organized into organizational units
or OUs by any number of logical or business needs. Group Policy Objects
or GPOs are then linked to OUs to centralize the settings for various
users or computers across an organization. Part of the quandaries that
IT professionals face is taking advantage of nuances provided in Active
Directory in newer server offerings such as Windows Server 2012. As
detailed in Pierre's post, "Windows Server 2012 Active Directory – What’s New?",
Active Directory provided in Windows Server 2012 R2 is
provided impactful enhancements. Yet some organizations choose not to
migrate due to reasons of uncertainty.
This Step-By-Step has been created to
assist with that uncertainty and provide guidance for IT professionals
looking to migrate their organizations Active Directory offering from
Windows Server 2003 to 2012 R2.
Transferring the Flexible Single Master Operations (FSMO) Role
Open the Active Directory Users and Computers console on your new Windows Server 2012 R2 computer.
Right click your domain and select Operations Masters in the sub menu.
In the Operations Masters window, ensure the RID tab is selected.
Select the Change button.
SelectYes when asked about transferring the operations master role.
Once the operations master role has successfully transferred, clickOK to continue.
Ensure the Operations Master box now shows your new 2012 R2 Windows Server.
Repeat steps 4 to 6 for the PDC and Infrastructure tabs.
Once completed, clickClose to close the Operations Masters window.
Close the Active Directory Users and Computers window.
Changing the Active Directory Domain Controller
Open the Active Directory Domains and Trusts console on your new Windows Server 2012 R2 computer.
Right click your domain and select Change Active Directory Domain Controller... in the sub menu.
In the Change Directory Server window, selectThis Domain Controller or AD LDS instance.
Select your new 2012 R2 Windows Server.
ClickOK to continue.
Back in the Active Directory Domains and Trusts window, hover over the Active Directory Domains and Trusts found in the folder tree on the left hand side to ensure the server now reflects your new 2012 R2 Windows server.
Right clickActive Directory Domains and Trusts found in the folder tree and select Operations Manager... in the sub menu.
In the Operations Master window, clickChange to transfer the domain naming master role to the 2012 R2 Windows Server.
When asked if you are sure you wish to transfer the operations master role to a different computer, clickYes.
Once the operations master is successfully transferred, clickOK to continue.
ClickClose to close the Operations Master window.
Close the Active Directory Domains and Trusts console.
Changing the Schema Master
Open a command prompt in administration view on your new Windows Server 2012 R2 computer.
On the command prompt window, enterregsvr32 schmmgmt.dll and hit enter.
Once completed successfully, clickOK to close the RegSvr32 window.
Close the command prompt.
Add the Active Directory Schema Console from MMC
Open a MMC console on your new Windows Server 2012 R2 computer.
Click File > Add/Remove Snap-in...
In the Add or Remove Snap-ins window, selectActive Directory Schema and click the Add > button.
ClickOK to continue.
Change the Schema Master
In the same MMC console, right clickActive Directory Schema and selectChange Active Directory Domain Controller... in the sub menu.
In the Change Directory Server window, selectThis Domain Controller or AD LDS instance.
Select your new 2012 R2 Windows Server.
ClickOK to continue.
A warning will appear stating that the Active Directory Schema snap-in in not connected. ClickOK to continue.
Hover over the Active Directory Schema folder in the folder tree to ensure the new Windows Server 2012 R2 computer is shown.
Now right clickActive Directory Schema and selectOperations Master... in the sub menu.
In the Change Schema Master window, clickChange to transfer the schema master role to the 2012 R2 Windows Server.
When asked if you are sure you wish to transfer the schema master role to a different computer, clickYes.
Once the schema master is successfully transferred, clickOK to continue.
ClickClose to close the Change Schema Master window.
In the MMC, clickFile > Exit.
When asked to save the console, clickNo.
Once completed, open the Active
Directory Users and Computers console to verify that the Active
Directory database successfully replicated to your new Windows Server
2012 R2 computer. Be aware that the database replication may take
some time depending on the number of objects in Active Directory.
Removing the 2003 Windows Server from the Global Catalog Server
Open Active Directory Sites and Services on your new Windows Server 2012 R2 computer.
Expand the Sites folder, then the Default-First-Site-Name folder, then the Servers folder.
Expand both listed servers. One should be your new 2012 Windows Server and one should be you 2003 Windows Server.
Right clickNTDS Settings found under your old 2003 Windows Server.
In the sub menu, selectProperties.
Under the General Tab, unselectGlobal Catalog and then click the Apply button.
ClickOK to continue.
Close the Active Directory Sites and Services window.
Verify that your new 2012 R2 Windows
Server is running the FSMO role by opening the command prompt in
Administrative view and running the following command: Netdom query fsmo.
In the Network and Sharing Center,
be sure to change the Preferred DNS server to match the Alternate DNS
server, then delete the IP address listed under the Alternate DNS
server should it currently be pointed to the old 2003 Windows Server.
All that's left is to demote the old
2003 Windows server by first adding the new 2012 R2 Windows Server as
the Primary DNS, followed by running DCPROMO to demote the old 2003
Windows server. Be sure to also visit Microsoft Virtual Academy created to further enable IT professionals in regards task such as migrating to Windows Server 2012 R2.