Questions tagged [ou]

OU stands for Organizational Unit. It's used in directories in general and in LDAP (Lightweight Directory Access Protocol), particularly to point out the main attribute of the organizationalUnit class.

Organizational Unit is described in ITU-T X521 (Telecommunication Standardization sector of International Telecommunication Union) as a class used to define entries representing subdivisions of organizations. As far as LDAP is concerned, organizationalUnit is defined in RFC2256.

Organizational Units are generaly the immediate superior of entries of object class user, inetOrgPerson, group or groupOfNames.

103 questions
0
votes
3 answers

Verify that an OU exists

I want to find out if an organisational unit exists or not so I wrote this following code but it shows up an error : Impossible to find object with the identity OU_Bloquage.Despite it does really exist(I've created it) Below is the code I've…
MKH_Cerbebrus
  • 51
  • 2
  • 10
0
votes
1 answer

Listing information for all computers in an OU using PowerShell

For a lab working on PowerShell, I have to target a specific OU and list the following information in a text file. DistinguishedName DNSHostName Enabled Name ObjectClass ObjectGUID SamAccountName SID UserPrincipleName I've found a ton of resources…
N.Spiess
  • 57
  • 8
0
votes
2 answers

Finding Active Directory user objects in adjacent OU's to built in Users OU using PowerShell

I have the directory structure test.com --Hosting ----ParentCompany ------ChildCompany1 --------SubChildCompany1 ----------Users <==== Trying to get users from…
CodePoet
  • 3
  • 2
0
votes
0 answers

delegate 'Create all child objects' permission in OU

I am using below script to delegate 'Create all child objects' permission in OU. It is working fine but Inheritance Type is getting set to 'This Object only'. How Can I set the Inheritance Type to 'This Object and all descendent…
ranjit kumar
  • 55
  • 1
  • 9
0
votes
1 answer

Copy AD attributes (state to city) in a specific OU

I have a problem with a simple script. I need to copy attributes (STATE to CITY) on all users in my OU. I found this script, but there is an error somewhere. Could someone help me with this? Get-ADUser -Filter * -SearchBase "MY OU" -Properties city,…
Artur
  • 3
  • 1
0
votes
1 answer

Powershell create AD Users in different OUs using csv

I've got an problem creating new users in Active Directory. I've got a .csv file where I specified as one of many headers "location" with the City where the User will be situated, now I want to create the user in an OU that matches the "location"…
Dschordge
  • 3
  • 1
0
votes
1 answer

Delete multiple AD OUs that have protection on them

I am trying to delete multiple ou's, not in the same parent\child structure but multiple OU's next to each other.…
aztech
  • 71
  • 2
  • 5
  • 9
0
votes
1 answer

How to get a list of all objects under organization unit from LDAP?

How can I get a list of every user and/or Group that is located inside of an LDAP organization unit? I am trying to query my LDAP server using c#. I want to get a list of all my distribution lists. All of my distribution lists are grouped under an…
Junior
  • 11,602
  • 27
  • 106
  • 212
0
votes
1 answer

Powershell show OU for a list of servers

I have a list of servers and need to find out what OU each one is in. I have searched and found something close but cannot get it to work properly. I am thinking there is a relatively easy way to do this but it eludes me. I have been trying to use…
aztech
  • 71
  • 2
  • 5
  • 9
0
votes
1 answer

Moving computer to another OU in OSD with PowerShell

I am having a lot of trouble getting this code to work in a TS environment. From a Windows environment, it works great. Just about any variation you will find with a google search of this code works fine in Windows. However in a Task Sequence these…
jgnovak-dev
  • 495
  • 3
  • 11
0
votes
0 answers

Do NOT want to get nested group results in active directory search

I am trying to interogate active directory and add the contents in a dropdown list. I have been succesfull so far, but my only issue is I am getting the nested groups from my search base and filter below and I do not want this to happen. How do I…
0
votes
1 answer

Spring LDAP search with organisational units returns zero results

I'm working on a plain java command line software which performs a recursive LDAP search with Spring LDAP, starting from a specified group and searching all the users from the specified groups and subgroups. The search fails to find anything if the…
arq
  • 125
  • 1
  • 2
  • 9
0
votes
1 answer

LDAP query to show which OU the user is in

I am using Nintex LDAP query action and I need to get the OU the user is currently in before moving the user to a different OU. How can I get the user's current OU using LDAP query?
LetMeSP
  • 21
  • 3
0
votes
1 answer

Microsoft Lync OU Groups

I can access the users in the domain by typing the contact name in the search box. Is there a way in the Lync account to organize the users in the same domain into groups as Organizational Units? Example: Sales Department: -User 1 -User 2 -User 3 HR…
glennjgalea
  • 1
  • 1
  • 1
  • 4
0
votes
1 answer

List user and group from an OU in AD

I want to list all users and group from an OU in AD, and differenciate them. But I found solutions to list user or group, but not both of them. Is it possible ?
Mati24
  • 321
  • 3
  • 7