Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 684 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 684 Bytes

Get-ADObjectLocation

Get OU location of the user or computer using PowerShell. This script can create a simple visual map for you to point out exact location of the AD object

Examples:
Get-ADObjectLocation -ComputerName MYPC

Output:
my.domain.local
    |___ Developers
        |___ Computers
            |___ MYPC

Examples:
Get-ADObjectLocation -Username MyUserName

Output:
my.domain.local
    |___ Developers
        |___ Users
            |___ MyUserName