• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 781
  • Last Modified:

Need command line function to compare two user AD entries

I would like to do a comparison of two user entries in Active Directory.

Preferably via a commandline function
0
Christopher Schene
Asked:
Christopher Schene
  • 7
  • 4
  • 2
  • +1
4 Solutions
 
Christopher ScheneSystem Engineer/Software EngineerAuthor Commented:
Those are power Shell scripts?
0
 
AmitIT ArchitectCommented:
yes it is PS
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
Christopher ScheneSystem Engineer/Software EngineerAuthor Commented:
Ok, I am complete power chart novice....have never written one single line. so i have REALLY basic questions:

1) What servers or OS can I run  power Shell on? ( I am using windows 2003, XP). I do not have the ability to update software on these systems as they are customer production systems
2) Can I run it from DOS command line? If not, how do I run it?
0
 
Christopher ScheneSystem Engineer/Software EngineerAuthor Commented:
Oh...One other thing, I want to compare WHAT is different between the users....not just a "yes or no" they are different
0
 
Christopher ScheneSystem Engineer/Software EngineerAuthor Commented:
"Ok, I am complete power chart novice"

of course I mean

"Ok, I am a complete power shell novice"
0
 
Mike KlineCommented:
You would need to install powershell on the 2003 or XP machine.  Do you have any 7/2008 boxes around?

Thanks

Mike
0
 
Christopher ScheneSystem Engineer/Software EngineerAuthor Commented:
I would need to install it on my XP machine which I cannot via VPN to my customer.

Where do I get PS?
0
 
Mike KlineCommented:
You can download it here

http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx

A lot of examples you will see here and on other forums for AD also utilize the Quest AD cmdlets http://www.quest.com/powershell/activeroles-server.aspx

Thanks

Mike
0
 
AmitIT ArchitectCommented:
0
 
xylogCommented:
Dsquery user and dsget user can be used to do many ldap functions quickly and easily from the command line. For example to retrieve group memberships based on a users sam account name:

dsquery user -samid username|dsget user -memberof
0
 
Christopher ScheneSystem Engineer/Software EngineerAuthor Commented:
increase points to 500
0
 
AmitIT ArchitectCommented:
Thanks, Check Hyena tool also
http://www.systemtools.com/hyena/index.html

It can give you lot of information and you can do the custom query.  Paid one but free for trial.
0
 
Christopher ScheneSystem Engineer/Software EngineerAuthor Commented:
All three suggestions were helpful. thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 7
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now