Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 776
  • 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
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
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

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

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