Welcome
Labels
- Active Directory Server (6)
- Active Directory Videos (1)
- Adding a PC to ADS (1)
- Adding a User to ADS (1)
- Adding Mailbox to Exchange Server 2003 (1)
- Adsense Secrets (1)
- Certificater Server (1)
- DNS Server (1)
- How to earn through adsense (1)
- Increasing VPN Client tunnel performance (2)
- Increasing VPN Server performance (1)
- ISA Server (1)
- ISA Server (2)
- ISA VPN Server (1)
- JoelComm Adsense Success (1)
- Mac OSX Viruses (1)
- Microsoft Exchange Server 2003 (2)
- Microsoft Exchange Server 2003 Videos (2)
- Microsoft Exchange Server 2007 (1)
- Microsoft Exchange Server 2007 Videos (1)
- Reset Windows XP Password (1)
- Roaming Profiles in ADS (1)
- Split Tunneling (1)
- Techniques to increase VPN tunnel performance (1)
- USB Drive Issues (1)
- Videos (3)
- VPN Client Performance (1)
- VPN Server (7)
- VPN Services (9)
- Windows Server 2003 Certificate Server (1)
- Windows Server 2003 Terminal Server (3)
- Windows Server 2003 VPN Server (6)
- Windows XP Professional Tips (6)
- Windows XP Split Tunneling (1)
Preface:
Earlier, I showed you how to add users to your Active Directory domain. This tutorial will focus on how to add computers. This step is not "really" necessary for workstation computers - at least, I was able to add a Windows XP machine to my domain without adding the computer name first. This is section is really for looking at which computers join, and allow other servers to join as DC's, etc. I will show you how to add the computer using "Active Directory Users and Computers", then in other tutorials, I will demonstrate how to add a Windows 2000 computer and Windows XP computer to this domain.
Update:
Brian Desmond (Windows Server MVP) emailed me with the following information on why someone might want to add a computer to AD manually:
"By default a computer will get dumped in the Computers container, unless a Windows 2003 Native Mode Domain is inplace, and redircomp has been run to change this. Precreating computer accounts in OUs will ensure that when the unit is joined, it is in the correct OU, which guarantees policy consistency, and other administrative things. One can also specify who can reset the machine’s password. This will allow an admin to create an account for a computer, and let a normal user join the machine with their credentials."
Method:
Click Start, highlight "Administrative Tools" and select "Active Directory Users and Computers"
Expand your domain name, and right-click "Computers", highlight "New" then click "Computer"
In this dialog we have to type the name of the computer we want to add
In the next dialog just click "Next", then you will see a final report of what will be added, and you can click "Finish".
And, we're done!
As you know, if you try to add AD users using lusrmgr.msc you will receive the following error:
And since I cover creating a local user (lusr) I thought it would only be right to cover creating an Active Directory user.
Method:
Click Start, highlight "Administrative Tools" and select "Active Directory Users and Computers"
Now, expand your domain name on the left side, and go to the bottom where it says "Users". Once you click on that, you will see all of the automatically created users, you will also see all of the users you made before you ran dcpromo - that's because they all stay through the promotion to DC. Anyway, to add a user, you can either right click the "Users" folder on the left side, or the blank area on the right side, and highlight "New" then click "User"
In the next dialog we can set the user's First name, Last name and various other pieces of information, including their log-on name, and domain to which we want to add them
After clicking "Next" you are presented with the password-settings screen. You can set the user's password and then have them change it on their first log-on by selecting "User must change password at next logon". But in this tutorial, I will set it as their password, and not allow them to ever change it without asking me (the administrator) to change it for them
In the next dialog, we get a summary of the user to be created. Click "Finish" and the user has been created
And we're finished! Now, you might want to check out the tutorial on how to add a computer to Active Directory, that will help you get the full benefits of AD.
In Windows Active Directory, how can I assign or publish a .MSI file?
Note: The following information is intended for registered local support providers lsps@iu.edu ; otherwise, contact your campus Support Center. (LSPs) at Indiana University. If you are an LSP and have questions regarding the information in this document, contact LSP Services at
With Active Directory group policies, you can do far more than just restrict and set certain registry entries. You can set startup or shutdown scripts for computers, set login and logout scripts for users, redirect folders like My Documents, publish applications, and more. You have three main options for assigning and publishing applications:
- Assign to a user
- Assign to a computer
- Publish to a user
When you assign an application to a user, its icons are set up and the software is installed on first use. If you assign to a computer, it will be installed the next time the computer starts. If you publish an application, the user has the option of installing the application via the Add/Remove Programs control panel applet. The user cannot uninstall any deployed application. Only published applications can be uninstalled, because they are optional.
Note: At Indiana University, you should assign software installation through group policy objects (GPOs) to computers. Assigning software to users can be very time-consuming and unpredictable. For more information, see In the IU Active Directory, how should I deploy software?
You can publish or assign applications to any GPO, which means you can assign applications per domain, per site, or per organizational unit (OU). To publish or assign an application to a GPO:
- Start the Active Directory Users and Computers Microsoft Management Console snap-in. To do this, click
Startand selectPrograms, thenAdministrative Tools, and thenActive Directory Users and Computers.
- Right-click the domain, OU, or site, and select
Properties. Then select theGroup Policytab.
- From a Windows XP or Windows Server 2003 computer, click
Open(skip to the next step if using a Windows 2000 system).
- Select the GPO to which you wish to assign or publish the application:
- From a Windows XP or Windows Server 2003 computer, right-click either
Computer ConfigurationorUser Configuration, depending on whether you want the application to be assigned to a user or a computer.
- From a Windows 2000 computer, click
Editand then select eitherComputer ConfigurationorUser Configuration, depending on whether you want the application to be assigned to a user or a computer.
- From a Windows XP or Windows Server 2003 computer, right-click either
- Select
Software Settings, thenSoftware installation.
- Right-click
Software installationand, from the context menu, selectNew, thenPackage.
- Select the MSI file you wish to deploy, for example: \\bl-uits-titanic\data\winzip\winzip.msi Make sure you specify a network path that the users or computers can access, or they will be unable to install the software.
- Click
Open. You will be able to select eitherPublishorAssign. Select the appropriate option (normallyAssign), and clickOK.
The program will now appear under the "Software installation" branch, and will be assigned or published to any users or computers who have the GPO applied to them.
About Disk Quotas
Unfortunately, in Windows NT Disk Quotas didn’t exist, which was much to the disappointment of Windows Administrators. Along came Windows 2000 and with the introduction of Disk Quotas it meant Administrators had the ability to track and control user disk usage. The only problem was that they didn’t really have a sufficient way of managing disk quotas. Scripting, reporting and remote usage methods were somewhat limited and ambiguous. Windows 2003 offers better all round functionality and easier enterprise-wide disk quota manageability.
Disk quotas are used in conjunction with NTFS, Group Policy and Active Directory technology. NTFS is the file system on which disk quotas can be set, Group Policy is what is used to set disk quotas on a specific set of users and computers, and Active Directory is used to gather a list of users to which the disk quota group policy will be set. It is important to note that disk quotas can only be used with NTFS; setting them up on FAT or FAT32 drives is not possible.
Disk quotas are configured on a per volume basis and cannot be set on a file or folder level. Each volume would have its individual settings which do not affect any other volumes. You may have a single disk partitioned into two volumes (drives C and D for example) with each having their own quota settings. Disk quotas can also be configured on a per user basis and different groups of users can have different limits set. Administrators are the only ones to whom a disk quota does not apply; by default there are no limits for an Administrator.
There are numerous reasons you may wish to make use of disk quotas. Based on the requirements of your organization you might choose to configure disk quotas if you have a restricted amount of disk space on a specific server, a limited number of servers, or perhaps the need to monitor user disk space usage without actually enforcing a quota. You might be wondering why you’d want to just monitor user disk space usage. Well, let’s say you have a fileserver set up with multiple users in your organization using it everyday to store temporary files. As time goes by and perhaps people forget to delete the files from the server, the amount of available disk space will continue to decrease. If nothing is done about it then users will be denied the right to add more files on the server (until some old files are removed). By monitoring user disk space usage with Microsoft’s disk quotas, you can be notified of when space is running out and then increase the allocated space on the server accordingly or notify your users that they need to delete their files from the server. Additionally, setting a quota warning level will allow for a system event log to be written for your review.
Setting a Group Policy
The most practical means of configuring disk quotas on a large scale would be through a domain-level group policy. This will configure the settings automatically on any of the volumes you wish to have disk quotas enabled, saving you the need to have to configure each volume independently.
Open the Group Policy Object Editor (gpedit.msc) and navigate to Computer Configuration > Administrative Templates > System > Disk Quotas. On the right hand pane you will see a list of policies that can be applied. Double click the “Default Quota Limit and Warning Level Properties” setting.
Figure 1: The Default Quota Limit and Warning Level Properties Dialog
The default quota limit is the maximum amount of space assigned per default quota, whereas the warning level is the amount of space at which a warning is triggered. Normally 90-95% of the total value is a good limit to set as a warning.
Now configure any other settings you wish to be applied by selecting them from the right hand pane. To have your changes applied immediately you can enable the “Disk Quota Policy Processing” policy and choose “Process Even If The Group Policy Objects Have Not Changed” from Administrative Templates > System > Group Policy.
Figure 2: The Disk Quota Policy Processing Dialog
You may also want to manually force a group policy update using the gpupdate utility. Simply go to Start > Run and type gpupdate followed by the return key. This will refresh both the computer and user policies.
Whatever changes you make in the group policy will be reflected on the Quota properties tab of each volume you wish to configure in your domain. The options will appear grayed out and non-editable.
Configuring Disk Quotas and Disk Quota Entries
Using the Computer Management console, you can configure disk quotas for a local or remote volume from a central location. To open Computer Management, you have three choices; either right click My Computer and select Manage, type compmgmt.msc in the Run bar or select Computer Management from the Administrative Tools folder.
Select which computer you wish to manage from the root node. To select a remote machine right click the “Computer Management” node, select “Connect to another computer…” and choose the computer you wish to manage. Now, navigate to Storage > Disk Management and select the volume you want to configure from the right hand pane and open the properties dialog. Click the Quota tab and enable the options you want to be enforced.
Figure 3: The Disk Quota Properties Dialog
The traffic lights icon at the top indicate the status of the disk quota; red means quotas are disabled, orange signifies a changeover is taking place (while it rebuilds the disk information), and green means disk quotas are enabled. A textual representation of the status is shown on the right of the image.
Check “Deny disk space to users exceeding quota limit” to have Windows restrict users from adding more data to their allocated disk space when the quota limit has been reached. Users will be unable to add more data until some space is freed up.
As you can see from Figure 3 above, the quota limit for new users is greyed out. This is because we have already set it from the group policy, which overrides any customizable settings on the quota tab of a volume. In this case we have limited the user’s disk space to 500MB and set a warning level to 450MB.
You may choose not to limit disk usage and just enable quotas to track disk space usage on a per volume basis by leaving the “Deny disk space to users exceeding quota limit” checkbox unchecked and logging a warning when a user exceeds the warning level defined as part of the quota limit. Whenever a user exceeds this limit a Warning event log will be written to the Application Event Log and shown in the Event Viewer.
Figure 4: A warning event log for disk quotas
As per http://support.microsoft.com/kb/915182 there is a known issue in the pre service pack version of Windows 2003 in that the Warning event log is incorrectly shown as an Information log in Event Viewer. In the Quota Entries application however, it is correctly displayed as a Warning.
When you press the Apply button on the Disk Quota Properties Dialog you are notified that the volume will be rescanned to update the statistics and that this operation may take several minutes. Simply press OK to continue and have disk quotas enabled on that volume.
Quota Entries
Click the Quota Entries button on the Disk Quota Properties Dialog to view a list of individual disk quota entries. From this section you can create, delete and manage quota entries for specific users or groups. If a user requires more space than others then you can set this from here.
Go to Quota > New Quota Entry and the Active Directory User Picker will appear. Choose a user from Active Directory and press OK. You will be given the option to limit disk space and set a warning level or not limit disk usage at all.
Figure 5: Adding a new quota entry
Once you have chosen your preferred settings, press OK and the user will be added to the list. You can monitor a user’s disk usage by looking at the properties of each of the columns. ‘Status’ indicates whether the user is within their limit, if a warning has been logged or if the limit has been exceeded; the icon will change accordingly.
Here is a quick list of what you must have:
-
An NTFS partition with enough free space
-
An Administrator's username and password
-
The correct operating system version
-
A NIC
-
Properly configured TCP/IP (IP address, subnet mask and - optional - default gateway)
-
A network connection (to a hub or to another computer via a crossover cable)
-
An operational DNS server (which can be installed on the DC itself)
-
A Domain name that you want to use
-
The Windows Server 2003 CD media (or at least the i386 folder)
-
Brains (recommended, not required...)
This article assumes that all of the above requirements are fulfilled.
Step 1: Configure the computer's suffix
(Not mandatory, can be done via the Dcpromo process).
-
Right click My Computer and choose Properties.
-
Click the Computer Name tab, then Change.
-
Set the computer's NetBIOS name. In Windows Server 2003, this CAN be changed after the computer has been promoted to Domain Controller.
-
Click More.
-
In the Primary DNS suffix of this computer box enter the would-be domain name. Make sure you got it right. No spelling mistakes, no "oh, I thought I did it right...". Although the domain name CAN be changed after the computer has been promoted to Domain Controller, this is not a procedure that one should consider lightly, especially because on the possible consequences. Read more about it on my Windows 2003 Domain Rename Tool page.
-
Click Ok.
-
You'll get a warning window.
-
Click Ok.
-
Check your settings. See if they're correct.
-
Click Ok.
-
You'll get a warning window.
-
Click Ok to restart.
Step 2: Configuring the computer's TCP/IP settings
You must configure the would-be Domain Controller to use it's own IP address as the address of the DNS server, so it will point to itself when registering SRV records and when querying the DNS database.
Configure TCP/IP
-
Click Start, point to Settings and then click Control Panel.
-
Double-click Network and Dial-up Connections.
-
Right-click Local Area Connection, and then click Properties.
-
Click Internet Protocol (TCP/IP), and then click Properties.
-
Assign this server a static IP address, subnet mask, and gateway address. Enter the server's IP address in the Preferred DNS server box.
Note: This is true if the server itself will also be it's own DNS server.
If you have another operational Windows 2000/2003 server that is properly configured as your DNS server (read my Create a New DNS Server for AD page) - enter that server's IP address instead:
-
Click Advanced.
-
Click the DNS Tab.
-
Select "Append primary and connection specific DNS suffixes"
-
Check "Append parent suffixes of the primary DNS suffix"
-
Check "Register this connection's addresses in DNS". If this Windows 2000/2003-based DNS server is on an intranet, it should only point to its own IP address for DNS; do not enter IP addresses for other DNS servers here. If this server needs to resolve names on the Internet, it should have a forwarder configured.
-
Click OK to close the Advanced TCP/IP Settings properties.
-
Click OK to accept the changes to your TCP/IP configuration.
-
Click OK to close the Local Area Connections properties.
Step 3: Configure the DNS Zone
(Not mandatory, can be done via the Dcpromo process).
This article assumes that you already have the DNS service installed. If this is not the case, please read Create a New DNS Server for AD.
Furthermore, it is assumed that the DC will also be it's own DNS server. If that is not the case, you MUST configure another Windows 2000/2003 server as the DNS server, and if you try to run DCPROMO without doing so, you'll end up with errors and the process will fail.
Creating a Standard Primary Forward Lookup Zone
-
Click Start, point to All Programs, point to Administrative Tools, and then click DNS Manager. You see two zones under your computer name: Forward Lookup Zone and Reverse Lookup Zone.
-
Right click Forward Lookup Zones and choose to add a new zone.
-
Click Next. The new forward lookup zone must be a primary zone so that it can accept dynamic updates. Click Primary, and then click Next.
-
The name of the zone must be the same as the name of the Active Directory domain, or be a logical DNS container for that name. For example, if the Active Directory domain is named "lab.dpetri.net", legal zone names are "lab.dpetri.net", "dpetri.net", or "net".
Type the name of the zone, and then click Next.
-
Accept the default name for the new zone file. Click Next.
-
To be able to accept dynamic updates to this new zone, click "Allow both nonsecure and secure dynamic updates". Click Next.
-
Click Finish.
You should now make sure your computer can register itself in the new zone. Go to the Command Prompt (CMD) and run "ipconfig /registerdns" (no quotes, duh...). Go back to the DNS console, open the new zone and refresh it (F5). Notice that the computer should by now be listed as an A Record in the right pane.
If it's not there try to reboot (although if it's not there a reboot won't do much good). Check the spelling on your zone and compare it to the suffix you created in step 1. Check your IP settings.
Enable DNS Forwarding for Internet connections (Not mandatory)
-
Start the DNS Management Console.
-
Right click the DNS Server object for your server in the left pane of the console, and click Properties.
-
Click the Forwarders tab.
-
In the IP address box enter the IP address of the DNS servers you want to forward queries to - typically the DNS server of your ISP. You can also move them up or down. The one that is highest in the list gets the first try, and if it does not respond within a given time limit - the query will be forwarded to the next server in the list.
-
Click OK.
Creating a Standard Primary Reverse Lookup Zone
You can (but you don't have to) also create a reverse lookup zone on your DNS server. The zone's name will be the same as your TCP/IP Network ID. For example, if your IP address is 192.168.0.200, then the zone's name will be 192.168.0 (DNS will append a long name to it, don't worry about it). You should also configure the new zone to accept dynamic updates. I guess you can do it on your own by now, can't you?
Step 4: Running DCPROMO
After completing all the previous steps (remember you didn't have to do them) and after double checking your requirements you should now run Dcpromo.exe from the Run command.
-
Click Start, point to Run and type "dcpromo".
-
The wizard windows will appear. Click Next.
-
In the Operating System Compatibility windows read the requirements for the domain's clients and if you like what you see - press Next.
-
Choose Domain Controller for a new domain and click Next.
-
Choose Create a new Domain in a new forest and click Next.
-
Enter the full DNS name of the new domain, for example - kuku.co.il - this must be the same as the DNS zone you've created in step 3, and the same as the computer name suffix you've created in step 1. Click Next.
This step might take some time because the computer is searching for the DNS server and checking to see if any naming conflicts exist.
-
Accept the the down-level NetBIOS domain name, in this case it's KUKU. Click Next
-
Accept the Database and Log file location dialog box (unless you want to change them of course). The location of the files is by default %systemroot%\NTDS, and you should not change it unless you have performance issues in mind. Click Next.
-
Accept the Sysvol folder location dialog box (unless you want to change it of course). The location of the files is by default %systemroot%\SYSVOL, and you should not change it unless you have performance issues in mind. This folder must be on an NTFS v5.0 partition. This folder will hold all the GPO and scripts you'll create, and will be replicated to all other Domain Controllers. Click Next.
-
If your DNS server, zone and/or computer name suffix were not configured correctly you will get the following warning:
This means the Dcpromo wizard could not contact the DNS server, or it did contact it but could not find a zone with the name of the future domain. You should check your settings. Go back to steps 1, 2 and 3. Click Ok.
You have an option to let Dcpromo do the configuration for you. If you want, Dcpromo can install the DNS service, create the appropriate zone, configure it to accept dynamic updates, and configure the TCP/IP settings for the DNS server IP address.
To let Dcpromo do the work for you, select "Install and configure the DNS server...".
Click Next.
Otherwise, you can accept the default choice and then quit Dcpromo and check steps 1-3.
-
If your DNS settings were right, you'll get a confirmation window.
Just click Next.
-
Accept the Permissions compatible only with Windows 2000 or Windows Server 2003 settings, unless you have legacy apps running on Pre-W2K servers.
-
Enter the Restore Mode administrator's password. In Windows Server 2003 this password can be later changed via NTDSUTIL. Click Next.
-
Review your settings and if you like what you see - Click Next.
-
See the wizard going through the various stages of installing AD. Whatever you do - NEVER click Cancel!!! You'll wreck your computer if you do. If you see you made a mistake and want to undo it, you'd better let the wizard finish and then run it again to undo the AD.
-
If all went well you'll see the final confirmation window. Click Finish.
-
You must reboot in order for the AD to function properly.
-
Click Restart now.
Step 5: Checking the AD installation
You should now check to see if the AD installation went well.
-
First, see that the Administrative Tools folder has all the AD management tools installed.
-
Run Active Directory Users and Computers (or type "dsa.msc" from the Run command). See that all OUs and Containers are there.
-
Run Active Directory Sites and Services. See that you have a site named Default-First-Site-Name, and that in it your server is listed.
-
Open the DNS console. See that you have a zone with the same name as your AD domain (the one you've just created, remember? Duh...). See that within it you have the 4 SRV record folders. They must exist.
If they don't (like in the following screenshot), your AD functions will be broken (a good sign of that is the long time it took you to log on. The "Preparing Network Connections" windows will sit on the screen for many moments, and even when you do log on many AD operations will give you errors when trying to perform them).
This might happen if you did not manually configure your DNS server and let the DCPROMO process do it for you.
Another reason for the lack of SRV records (and of all other records for that matter) is the fact that you DID configure the DNS server manually, but you made a mistake, either with the computer suffix name or with the IP address of the DNS server (see steps 1 through 3).
To try and fix the problems first see if the zone is configured to accept dynamic updates.
Right-click the zone you created, and then click Properties.
On the General tab, under Dynamic Update, click to select "Nonsecure and secure" from the drop-down list, and then click OK to accept the change.
You should now restart the NETLOGON service to force the SRV registration.
You can do it from the Services console in Administrative tools:
Or from the command prompt type "net stop netlogon", and after it finishes, type "net start netlogon".
Let it finish, go back to the DNS console, click your zone and refresh it (F5). If all is ok you'll now see the 4 SRV record folders.
If the 4 SRV records are still not present double check the spelling of the zone in the DNS server. It should be exactly the same as the AD Domain name. Also check the computer's suffix (see step 1). You won't be able to change the computer's suffix after the AD is installed, but if you have a spelling mistake you'd be better off by removing the AD now, before you have any users, groups and other objects in place, and then after repairing the mistake - re-running DCPROMO.
-
Check the NTDS folder for the presence of the required files.
-
Check the SYSVOL folder for the presence of the required subfolders.
-
Check to see if you have the SYSVOL and NETLOGON shares, and their location.
If all of the above is ok, I think it's safe to say that your AD is properly installed.