Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 780
  • 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
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

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