Solved

Powershell Script to pull AD account owner

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

Join & Write a Comment

This article will help you understand what HashTables are and how to use them in PowerShell.
A safe way to clean winsxs folder from your windows server 2008 R2 editions
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 show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now