search syntax with Get-ADUser

Posted on 2012-09-05
Last Modified: 2012-10-04
I need a help with the search syntax by using Get-ADUser.

I need the output result of Admin1 showing permissions of object A, object B or object C anywhere in the AD tree..

I know Liza GUI app can this for me but I am trying write something in cli.
Question by:alisafia
    LVL 39

    Assisted Solution

    by:Krzysztof Pytko
    Get-ADUser would not be so helpful in this case. I would recommend using dsacls command on a Domain Controller. This will display all permissions for specified object in a query.

    You may check on that blog some examples of command usage

    or using PowerShell Get-ACL and Set-ACL cmd-lets

    LVL 40

    Accepted Solution

    You can also try with Get-QADPermission from Quest AD cmdlets..
    For example..
    Get-QADUser username -SecurityMask Dacl | Get-QADPermission -SchemaDefault -Inherited | Where-Object {$_.AccountName -eq "domain\Admin"}

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
    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 steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
    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…

    779 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

    16 Experts available now in Live!

    Get 1:1 Help Now