Friday, 31 May 2013

Setting Up Your First Domain Controller With Windows Server 2008

  1. If you have set up a domain controller previously with Windows 2000 Server, or Windows Server 2003, then you would be familiar with thedcpromo.exe command, it will also be used to set up a Domain Controller on Windows Server 2008. 

    To use the command, click on Start  > Run > and then write dcpromo > Click OK

  2. The system will start checking if Active Directory Domain Services ( AD DS) binaries are installed, then will start installing them. The binaries could be installed if you had run the dcpromo command previously and then canceled the operation after the binaries were installed.

                             

  3. The Active Directory Domain Services Installation Wizard will start, either enable the checkbox beside Use Advanced mode installationand Click Next , or keep it unselected and click on Next



    The following table lists the additional wizard pages that appear for each deployment configuration when you select the Use advanced mode installation check box.
    Deployment configuration
    Advanced mode installation wizard pages
    New forest
    Domain NetBIOS name
    New domain in an existing forest
    On the Choose a Deployment Configuration page, the option to create a new domain tree appears only in advanced mode installation.
    Domain NetBIOS name
    Source Domain Controller
    Additional domain controller in an existing domain
    Install from Media
    Source Domain Controller
    Specify Password Replication Policy (for RODC installation only)
    Create an account for a read-only domain controller (RODC) installation
    Specify Password Replication Policy
    Attach a server to an account for an RODC installation
    Install from Media
    Source Domain Controller

  4. The Operating System Compatibility page will be displayed, take a moment to read it and click Next

  5. Choose Create a new domain in a new forest, Click Next

  6. Enter the Fully Qualified Domain Name of the forest root domain inside the textboxclick Next

  7. If you selected Use advanced mode installation on the Welcome page, the Domain NetBIOS Name page appears. On this page, type the NetBIOS name of the domain if necessary or accept the default name and then click Next.

  8. Select the Forest Functional Level, choose the level you desire and click on Next. Make sure to read the description of each functional level to understand the difference between each one.

  9. In the previous step, If you have selected any Forest Functional Level other than Windows Server 2008 and clicked on Next , you would then get a page to select the Domain Functional Level. Select it and then click on Next


  10. In the Additional Domain Controller Options page, you can select to install the Domain Name Service  to your server. Note that the First domain controller in a forest must be a Global Catalog  that's why the checkbox beside Global Catalog is selected and it cannot be cleared. The checkbox is also selected by default when you install an additional domain controller in an existing domain, however you can clear this checkbox if you do not want the additional domain controller to be a global catalog server. The first domain controller in a new forest or in a new domain can not be a Read Only Domain Controller (RODC), you can later add a RODC but you must have at least one Windows Server 2008 Domain Controller.

    I want to set my DC as a DNS Server as well, so I will keep the checkbox beside DNS Server selected and click on Next


  11. If the wizard cannot create a delegation for the DNS server, it displays a message to indicate that you can create the delegation manually. To continue, click Yes
  12. Now you will have the location where the domain controller database, log files and SYSVOL are stored on the server.
    The database stores information about the users, computers and other objects on the network. the log files record activities that are related to AD DS, such information about an object being updated. SYSVOL stores Group Policy objects and scripts. By default, SYSVOL is part of the operating system files in the Windows directory

    Either type or browse to the volume and folder where you want to store each, or accept the defaults and click on Next


  13. In the Directory Services Restore Mode Administrator Password (DSRM) page, write a password and confirm it. This password is used when the domain controller is started in Directory Services Restore Mode, which might be because Active Directory Domain Services is not running, or for tasks that must be performed offline.
    Make sure that you memorize this password when you need it. I know many administrators forgot it when they most needed it !! 



    Make sure the password meet the password complexity requirements of the password policy, that is a password that contains a combination of uppercase and lowercase letters, numbers, and symbols. else you will receive the following message  :


  14. Summary page will be displayed showing you all the setting that you have set . It gives you the option to export the setting you have setup into an answer file for use with other unattended operations, if you wish to have such file, click on the Export settings button and save the file.


  15. DNS Installation will start

  16. Followed by installing Group Policy Management Console, the system will check first if it is installed or not.


  17. Configuring the local computer to host active  directory Domain Services and other operations will take place setting up this server as a Domain Controller









  18. Active Directory Domain Services installation will be completed, click Finish, then click on Restart Now to restart your server for the changes to take effect.




  19. Once the server is booted and you logon to it, click on  Start > Administrative Tools ,  will notice that following have been installed :
  • Active Directory Domains and Trusts
  • Active Directory Sites and Services
  • Active Directory Users and Computers
  • ADSI Edit
  • DNS
  • Group Policy Management



Summary
Setting up a Domain Controller in Windows Server 2008 to install Active Directory Domain Services is performed by running the dcpromo command. It has some new options like using Advanced Mode Installation, and exporting settings to an answer file . In my next articles, I will show you how to perform an unattended installation to set up your domain controller, and also how to set up an additional domain controller using Windows Server 2008.

Map Network Shared Drive in Group Policy

Map Network Shared Drive in Group Policy

This article walks you how to map a network drive with group policy to specific users/groups, or other custom specifications on windows server 2003, or 2008, SBS, standard, enterprise, or datacenter.
log into your domain controller, and open up group policy.
Browse to the organizational unit (OU) and create a new GPO Object, and Link here
from there give it a necessary name such as “Network Drives”
Hit ok, and then edit the group policy by right clicking on it, and selecting edit.
under user configuration, expand preferences, and then expand windows settings
Select Drive Maps, right click, and scroll over “new” and select mapped/network drive
you want to make sure that you first select “replace” that way if you already have a local copy of that mapped drive, it will replace it instead of creating a duplicate, even if you are starting fresh, you can use replace.
From there type in the share’s UNC path, in this example it’s \\StorageServerName\ShareName
we want to make sure we hit “reconnect” otherwise it will only put it in there once, and after that it will not try to reconnect.
If you want to give it a custom name such as “accounting” add what you want to the “label as” field, otherwise it will show up as the share path for the name.
Select the letter drive you want (keep in mind that the further away from C:/, or D:/ the better, for example if you set it for E:/ when someone plugs a flash drive in, it will not work, so use higher letters if you have the choice.
from there, there is another tab that is called “common” select that
there are other options that may apply to your organization, but the one we are foccusing on is “item level targeting” this will let us specify what users/groups/or other custom factor the share will be applied to. Select Item level targeting, and click on targeting
you will see the following area, looks confusing, but hit “new item”
as you can see you have a lot of options as to the way you can narrow, and specify this group policy/share for specific conditions.
we are going to hit “security group”
hit the browse button (…) from there you can pick the security group from active directory
as you can see we have selected accounting, but there’s one more thing you should be aware of, when you add MULTIPLE security groups/conditions, the default is a stickler, let’s add that one “exception user” to the mix that needs access to this share
as you can see, it gives the option of “and” so both conditions would have to be true for this to work, that’s generally not the case
go to “item options” and select “or”
now the group policy is as it should be. This works for any computer With NT Framework 4 or higher (windows 7, and Vista by default)
But…. Windows XP is still widely used in Corporate America, if your computer is not fully up to date with the latest windows updates, a great troubleshooting step to try if the drives do not map is do download and install Group Policy Preferences installer from Microsoft, and deploy to all machines, it’s available at the above link.
Once this is installed, reboot, and you should be good to go. (Keep in mind that a mapped drive with group policy requires a full reboot of the host computer, and then logging in, because this is targeted to user-side groups, you need to restart.

That’s it! You can now Map network Drives with Group Policy!