Mark M Manning

A site for information involving myself and my career.

Precreating Computers In Active Directory

Monday, August 4, 2008

This is a simple one that goes back to a conversation I had with a consultant. We were talking about adding a computer to a domain and then moving the computer to the designated OU that was dedicated to that site. I made the comment that it might be even better to precreate the computer account in the appropriate OU and then you don't need to bug a domain administrator to do the moving around. His reply was something like "Yea I haven't had good luck with that." That's one of my favorite reasons for technical problems. It's kind of like saying, I tried it once, it didn't work, so it must be broken.

Why Do This?

Anyways, the real reason that you would want to do this is if you have a team of IT staff where a few have domain administrators rights but most of them are just local admins on the workstations to provide support and install software. Adding a computer to the domain would be a normal task for these kind of support staff.

Problem

So you have a brand new computer that you want to add to your network. You assign on of the non domain admins to install necessary software and join it to the domain. When he adds it to the domain, the computer is dumped into the "computers" folder in AD where the appropriate group policies and delegated access is NOT applied. You want the new computer to go into a separate OU but you don't want to grant the user access to move or manipulate Active Directory AND you want to delegate the entire process to the admins so that you don't need to be involved in the specifics. So what do you do?

Solution

If you precreate the computer in the appropriate OU in Active Directory, when that computer is joined to the domain, it will have the group policies and permissions that it needs. As a domain admin, you can precreate the computer account yourself but you'd rather delegate access the IT support team. Here's how you do it:

Delegate Control To Non-Domain Admins

  1. Open Active Directory Users and Computers
  2. Right click on the OU and then click All Tasks>Delegate Control
  3. Click Add and put in the appropriate user or group (IT Admins)
  4. Click "create a custom task to delegate"
  5. Click "only the following objects in this folder"
  6. Check Computer Objects
  7. Check "Create selected objects in this folder"
  8. Under "Show these permissions" uncheck everything and click "Next"
You've now granted non-admins access to create computers inside of that OU.

Pre-Create New Computer

These are the tasks for the non-admin to perform using the Server 2003 Admin Pack
  1. In Active Directory Users and Computers, right click the target OU the computer should go to and choose New>Computer
  2. Name the computer
  3. Under "The following users or group can join this computer to the domain" choose a group that has appropriate access like "IT Admins" or "Domain Users" to allow anyone do it.
    This is the step that is usually missed. If you don't do this, then by default Domain Admins are the only one that can add the computer to the domain.
  4. Click Next
Now on the client you go through the normal process of adding the computer to the domain.

Labels: , , ,

Clear Out The Last Login From Being Displayed

Monday, May 12, 2008

Clearing out the last logged on user from the login screen is is a very simple task that I like to set on my domains and as the local policies for workgroup computers. It helps out in two different ways: first as a matter of security because an attacker walking up to the computer doesn't necessarily know a user name to log in with and second it helps to teach the user what their user name is because we all know if we don't type it in every day, we forget it. [see saved passwords]

Overview

For those of you that know mostly what you're doing and just need a reminder, here it is. The policy setting you need to change is located under:

  • Computer Configuration > Windows Settings > and Security Settings > Local Policies >Security Options
  • Edit the "Interactive Logon: Do not display last user name in logon screen" entry and check "define this setting" and "enabled."

On a Windows Domain Controller

  1. Under Administrative Tools open the Group Policy Management
  2. Find the group policy you want to change select it, right click, and choose "Edit".
  3. Expand Computer Configuration, Windows Settings, and Security Settings
  4. Expand Local Policies node, and then click Security Options.
  5. Edit the "Interactive Logon: Do not display last user name in logon screen" entry and check "define this setting" and "enabled."
  6. The setting will take affect on the next time the clients reboots. As a reminder, it can take varying amounts of time for group policies to be applied.

On a Local Vista Machine

  1. In the Control Panel, click System and Maintenance and open the Administrative Tools
  2. Open the Local Security Policy .
  3. Expand Computer Configuration, Windows Settings, and Security Settings
  4. Expand Local Policies node, and then click Security Options.
  5. Edit the "Interactive Logon: Do not display last user name in logon screen" entry and check "define this setting" and "enabled."

External Links:

http://support.microsoft.com/kb/310125 - Link to the MS KB article

Labels: , , , , ,