Setting up new users in Active Directory and SQL Server
Posted on 2006-06-14
Here's my problem:
Currently, when I set up a new user in Active Directory, I have to go through an entire process to get them set up, which can be a pain.
1.) Create a new user folder in our shared directory to hold their profile data (we use Roaming Profiles)
2.) Create a new user in AD using a standardized user name (first initial + last name...any way to automate this?). I've also got to set the Profile Path to the shared directory for their roaming profile.
3.) Set the new user to two security groups.
4.) Set up SQL Server Logins, in both the Security Logins and then assign that user to a specific database in SQL Server.
The question is: Is there a way to either automate or script this entire process so the only thing I have to do is create a new user in Active Directory and then be done with it? If not, what parts can I automate, just to make the process easier.
Now, I'm pretty sure I can set up SQL Server to utilize an AD Security Group as a means of access, but I'm not 100% sure how to get this done, so that might be a simple answer.
I can definitely benefit from some expert advice. Please let me know if you have any additional questions. I'm by no means a Windows Server 2003 or SQL Server guru, but I can hold my own. Thanks in advance.