Solved

Return Active Directory User Accounts without a Manager

Posted on 2014-09-26
1
202 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to pick specific file from ftp 13 40
AD Account Lockout 22 36
exchange, outlook 2 28
Modify Script to List all Certs that will Expire on CA Server 3 26
Utilizing an array to gracefully append to a list of EmailAddresses
In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
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 Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

910 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

20 Experts available now in Live!

Get 1:1 Help Now