?
Solved

Active Directory: User Properties - Organization - Manager - Name field : How do I populate that field using a script?

Posted on 2007-04-03
2
Medium Priority
?
1,734 Views
Last Modified: 2012-05-05
We use a script to add users to our domain.
In the User Properties - Organization - Manager - Name field, I want to add the users' manager.
I tried setting the UserManager variable and adding the following line to the script
objuser2.Put "manager",UserManager
The script does not work.

Question: Is it possible to populate the User Properties - Organization - Manager - Name Field?

If it is, what is the AD Variable name for that field?

Thanks in advance
0
Comment
Question by:colmsmith32
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 2000 total points
ID: 18845271
What's in "UserManager"?
This will need to be the full path to the manager's CN.

Iow, you can't use:

objUser.Put "manager", "Tom Jones"

You'll need to use something like
objUser.Put "manager", "CN=JonesT, OU=Management,dc=company,dc=com"
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18974689
Happy to help - thanx for the grade! :^)
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
A bad practice commonly found during an account life cycle is to set its password to an initial, insecure password. The Password Reset Tool was developed to make the password reset process easier and more secure.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question