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
1 answer

find out in which organizational unit are a given computer list in my domain

I have a list of hundreds od computers selected from my domain. I would like to make a report that shows up in which OU are all of them. I found out that this cmdlet can perform the task I need: PS C:\Users\digiacomo.a-rti> Get-ADComputer…
0
votes
2 answers

Export CSV of AD SamAccountNames and Groups for every user in specific OU

I found a similar question here, but it doesn't quite fit my need and I am having trouble tweaking it to do so. I need to create a .csv file of all users in a specific OU along with what their AD group membership is in the following format: User,…
Ritley572
  • 299
  • 4
  • 15
0
votes
2 answers

Move Object to an OU in Active Directory

I want to move a computer object to another OU I am connected to another domain and I always getting an exception of type ComException "A referral was returned from the server" and the object never move! try { //I get…
Nayef
  • 364
  • 2
  • 8
  • 22
0
votes
1 answer

On a domain, how do you define new user properties

I'm not sure the official name of these user properties so I'll explain them: In Active Directory Users and Computers, if you right-click a user, hit "properties", than look under the "general" tab you'll see First name initials last…
bzupnick
  • 2,646
  • 4
  • 25
  • 34
0
votes
1 answer

Not able to fetch users from the OU

I'm working on a project where I have to fetch the users from a particular OU in Active Directory. I use the Dropdown menu to store all the OUs present. As soon as the user selects a particular OU and clicks on the button the users available for…
Esha
  • 391
  • 1
  • 9
  • 37
0
votes
1 answer

Getting All OUs from a Active Directory

Is there any direct method for getting all OUs coming under in an Active Directory? I had tried the following code, and i am getting Com Exception (Invalid operation) at ouSearch.FindAll() My code is shown below. public static List
MAC
  • 6,277
  • 19
  • 66
  • 111
0
votes
2 answers

Compare two organizational units with Powershell

I would like to compare two organizational units users. I can get my user list with this command: OU_NUMBER_1: Get-ADUser -filter * -SearchBase "OU=OU_NUMBER_1,OU=OU-SNE_SharePoint,DC=vf,DC=local" | Select sAMAccountName OU_NUMBER_2: …
Sam
  • 11
  • 4
0
votes
1 answer

Display OU of a computer on a network with multiple domains

I'm really new to the VBscripting world, so please be gentle :) I'm trying to display the OU of a computer on a network which has 2 domains. I have a script to display the details of the local computer: Set objSysInfo =…
Ronnie S
  • 23
  • 1
  • 3
0
votes
2 answers

How to join a workgroup computer to a domain remotely

Scenario: I'm using ComputerA in a domain with admin credentials. Remote ComputerB (with known admin credentials) is in a workgroup. ComputerB needs to join a specific domain (Different than ComputerA's) in a specified OU which my active ComputerA…
VoidnessMD
  • 41
  • 1
  • 3
  • 10
-1
votes
1 answer

Create OU using ldapjs

I am using ldapjs and explore complete library and could not be able to find how to create OU. Kindly share with example and code explanation.
-1
votes
1 answer

Checking for existence of OU

How can I check for the existence of an organizational unit without using the [adsi]::Exists() method? I can't for the life of me get it work on my system.
user8056359
  • 437
  • 1
  • 7
  • 16
-1
votes
2 answers

How to have powershell go through a list of users and if they exists move them to ou mentioned if not display the username with failed.

Okay so i have the following code. It works but it returns failed for each user. The first 2 users are supposed to fail but the last one should be success but it should only show all the failed attempts and then place it in a text file. This is what…
Shiv Patel
  • 131
  • 1
  • 2
  • 11
-3
votes
1 answer

Using Java, how to check whether an organizational unit (OU) is available in LDAP or not?

I want to check an organizational unit (OU) is available in LDAP using Java code. My requirement is from this base dn ou=people,dc=agroup,dc=com i have fetch a user based on some attribute eg: email attribute is not null and i have to move those…
1 2 3 4 5 6
7