Solved

Powershell Script to pull AD account owner

Posted on 2014-12-03
2
1,643 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 39

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 will help you understand what HashTables are and how to use them in PowerShell.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
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…

785 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