Solved

Powershell Script to pull AD account owner

Posted on 2014-12-03
2
2,177 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
[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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Here's a look at newsworthy articles and community happenings during the last month.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

691 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