Solved

Return Active Directory User Accounts without a Manager

Posted on 2014-09-26
1
197 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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
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 …

772 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

10 Experts available now in Live!

Get 1:1 Help Now