Solved

Return Active Directory User Accounts without a Manager

Posted on 2014-09-26
1
204 Views
Last Modified: 2014-09-26
Hi there,

I was wondering if you could help, i'm looking to run a powershell script that returns all User accounts without a Manager using Get-ADUser. For some reason I can only return users with a manager.

Thanks so much!
0
Comment
Question by:Terellion
1 Comment
 

Accepted Solution

by:
Terellion earned 0 total points
ID: 40345887
Actually i've finally found out how to just after posting!

Get-ADUser -SearchBase "ou=users,dc=domain,dc=local" -Filter * -Properties * | where {$_.manager -eq $null} | Select-Object  Name | Sort-Object Name
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

Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html) provided 218 attendees with a step-by-step guide for identifying Acti…
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…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

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