Server 2012 PS: Script to find OU path
- 
 Needed to find the OU path for a user,.. Happened to find this useful. PS C:\Windows\system32> dsquery user -name ntg* "CN=UserName,OU=Users,OU=OUGroup,DC=DCserver,DC=com"updated title
- 
 You could also do something like this in powershell: (Get-ADUser -Identity username -Properties *).CanonicalName
- 
 @gjacobse said in Server 2012 PS: Script to find OU path: Needed to find the OU path for a user,.. Happened to find this useful. PS C:\Windows\system32> dsquery user -name ntg* "CN=UserName,OU=Users,OU=OUGroup,DC=DCserver,DC=com"updated titleAre you using AD for NTG? 
- 
 @dbeato said in Server 2012 PS: Script to find OU path: Are you using AD for NTG? No, NTG doesn't have AD or even Windows. 
- 
 @dbeato he's looking for NTG admin accounts on someone else's domain. 
- 
 @scottalanmiller said in Server 2012 PS: Script to find OU path: @dbeato he's looking for NTG admin accounts on someone else's domain. Good! 



