Posts Tagged ‘Windows 2012 Server’

How to: Windows 2012 Server deploy remote domain controllers using Server Manager – part II of II

A few weeks ago I’ve posted an article about how to remotely Install a domain controller within Windows 2012 Server using the Server Manager.

How to: Windows 2012 Server Deploy remote domain controllers using Server Manager – Part I of II

Since Windows 2012 Server, creating a new domain controller is much eassier then ever before. There is another option to create a new domain controller….Yes, using Windows PowerShell!!

As you can see in part I of the post, there are two domain controllers. I have installed a clean Windows 2012 Server within my labenvironment, called Server2.

1.) Logon to Server1 with the Administrator account
2.) Open Windows PowerShell
3.) Type the following command:
Install-WindowsFeature -Name AD-Domain-Services -ComputerName Server2
4.) After the Windows feature is installed succesfully, type the following command:
Invoke-Command –ComputerName Server2 –ScriptBlock {Import-Module ADDSDeployment;Install-ADDSDomainController –NoGlobalCatalog:$False –CreateDNSDelegation:$False –Credential (Get-Credential) –CriticalReplicationOnly:$False –DatabasePath “C:\Windows\NTDS” –DomainName “Contoso.com” –InstallDNS:$True –LogPath “C:\Windows\NTDS” –NoRebootOnCompletion:$False –SiteName “Default-First-Site-Name” –SysVolPath “C:\Windows\SysVol” }
When prompted for credentials, enter the username and password of your domain administrator account!

In my labenvironment, I have used the following parameters:
-ComputerName, this is the name of the new domain controller
-NoGlobalCatalog:$False, the new domain controller becomes also an Global Catalog Server
-CreateNDSDelegation:$False, there are no ohter DNS servers available for DNS delegation
-Creadential(Get-Credential), before executing the command, there will be an popup asking your admin crerdentials
-CriticalReplicationOnly:$False, this entry specifies whether the installation operation performs only important replication before a restart and then skips the noncritical and potentially lengthy part of replication. The noncritical replication occurs after the role installation is complete, and the computer restarts
-Databasepath, the location of the ADDS database (NTDS.DIT)
-DomainName, specifies the fully qualified domain name of your domain
-InstallDNS:$True, the new domain controllers becomes also an DNS server
-LogPath, this is the path of the fully qualified, non-UNC directory on a hard disk on the local computer that will  host the AD DS log files.
-NoRebootOnCompletion:$False, there will be no reboot at the end of the installation
-SiteName, this is the name of your Active Directory site where the new domain controller becomes a member of
-SysVolPath, this folder contains all content replicated to the other domain controller (NETLOGON and SYSVOL directories)
5.) After executing the commands above, and the installation has finished, the new domain controller becomes vissible in your Active Directory environment
6.) All you have to do now is waiting for the next Active Directory replication, so all your domain controllers are synchronized

       

       

       

   

How to: Windows 2012 switch from GUI to Core and from Core to GUI

When you install Windows 2012 Server, you’ve two options to install. The first one is the Core version, the second one is the graphical version (GUI). In the previous version, Windows Server 2008, it was also possible! There is one mayer difference in Windows 2012 Server. You’ve the possibility to change between the Core edition and graphical interface and back without installing the whole server again!

In a few steps you can transform your fully graphical version of Windows 2012 Server to only a black command line box! 😉 Let’s have a look.

1.) Install a Windows 2012 Server with the GUI version
2.) Open Powershell
3.) Type the following command:
Get-WindowsFeature *gui*. As you can see, there’re two Windows feature.
Graphical Management Tools and Infrastructure (Server-Gui-Mgmt-Infra)
Server Graphical Shell (Server-Gui-Shell)
4.) Type the following command to uninstall the GUI:
Get-WindowsFeature *gui* | Remove-WindowsFeature
5.) After restarting the server, you don’t have the GUI anymore
6.) Open Powershell
7.) Type the following command to install the GUI:
Get-WindowsFeature *gui* | Install-WindowsFeature
8.) After restarting the server, the GUI is back again.