Solved

Powershell Script to pull AD account owner

Posted on 2014-12-03
2
1,828 Views
Last Modified: 2014-12-03
Hi EE

Does anyone have a way of pulling this data for multiple AD accounts ?

Open ADUC -> find user -> goto property
-> security -> advanced -> owner
0
Comment
Question by:MilesLogan
2 Comments
 
LVL 40

Accepted Solution

by:
footech earned 500 total points
ID: 40479126
You can get ACL for AD objects the same as you can for filesystem objects.
Get-ADUser -filter * | Select name,@{n="owner";e={(Get-Acl "ad:\$($_.distinguishedname)").owner}}

Open in new window

0
 
LVL 2

Author Comment

by:MilesLogan
ID: 40479181
Awesome ! that worked perfect .. thanks !
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

821 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