Questions tagged [organizational-unit]
22 questions
4
votes
2 answers
C# Error trying Creating Organizational unit with spaces
So I have a program that needs to add a new organizational unit under another OU. The format has to be as it is in the code below. Problem is I keep getting the same exception if I put spaces in in the name. I am able to manually add OUs with…

David Bentley
- 824
- 1
- 8
- 27
3
votes
0 answers
C# Active Directory Adding a user
I'm trying to create a user with textboxes that have to be filled in. The properties, username and password are correct yet I get a "There is no such object on the server" error.
private void btn_AddStudent_Click(object sender, EventArgs e)
{
…
user8819325
2
votes
1 answer
Why does my PowerShell script can't locate an Organizational Unit in Active Directory
So I've been trying to bulk add users into an OU, and currently I'm stuck because my script couldn't locate the related OU. I've tried running Get-ADOrganizationalUnit -Filter * -Properties * and as expected I can find the OU there. But as soon as I…

Kevin Joshua
- 23
- 3
2
votes
2 answers
How do I get access to the EC2 my developer has created?
My developer has created an EC2 instance on AWS and I want to be able to access it via my own dashboard.
What I did is:
As a root user, I created an IAM account for me and him and assigned us both to a group named PowerUsers
I created an…

SHW
- 461
- 7
- 26
2
votes
1 answer
Adding custom Node OUs with Hyperledger Fabric
I am trying to add custom Node OU in policy definition inside the configtx.yaml file. The policy definition is present in Application section of configtx.yaml file as follows:
Application: &ApplicationDefaults
# Organizations is the list of orgs…

Chintan Rajvir
- 689
- 6
- 20
2
votes
3 answers
Importing CSV Users with a PowerShell Script
My aim is to import users in a CSV file to Active Directory via a simple PowerShell Script. Despite this I'm encountering a syntax error as seen below.
Updated: CSV Column…

Sam_M
- 29
- 1
- 7
2
votes
1 answer
Changing hostname and domain joining fine; but when specifying OU
So when I run the following script it works as expected
$newname = Read-Host 'Desired hostname'
$user = Read-Host 'Domain admin username'
$cpc = hostname.exe
Add-Computer -DomainName DOMAIN.CO.UK -ComputerName $cpc -NewName $newname -Credential…

Joshua Ribeiro
- 51
- 5
1
vote
1 answer
Using custom affiliation-based policies in Hyperledger Fabric
I want 4 intermediate CAs for a peer organization: ICA1, ICA2, ICA3 and ICA4 - one for every Node OU (peer, orderer, admin and client).
Let's say if I place ICA1 as the cacerts attribute in the Peer Node OU of the channel configuration, then will a…

Chintan Rajvir
- 689
- 6
- 20
1
vote
1 answer
Limiting the access to Google Cloud Platform Service Account to specific Gmail Accounts
I have recently made a program that listens to a PUB/SUB topic that is connected to a Gmail account. I have it all working fine. When a push notification arrives it will do different tasks based on the message content.
The problem is that I use a…

Lenny Meerwood
- 61
- 2
- 10
1
vote
1 answer
How do I use configure OpenSSL's policy to sign a certificate with multiple OUs?
I've recently starting configuring a CA with OpenSSL. The root CA requires intermediary CA certificates to have an OU field such that the intermediate CA's DN looks like OU=group.
With that intermediate CA, I've defined the policy for CSRs it can…

Andrew George
- 11
- 1
1
vote
2 answers
C# Active Directory setting user properties
I'm trying to set user properties for a newly created user. Properties like samaccount and userprincipalname work but other properties like address and phone number don't. I'm making use of textboxes. Here's a property…
user8819325
0
votes
1 answer
Active Directory - Copy OrganizationalUnit name to user Location attribute
Is there a way to programmatically copy the OrganizationalUnit name of an AD user to it's location attribute?
I have several OUs on my AD tree where each of them is related to a physical department of my company. Users were created only with the…
0
votes
1 answer
Active Directory Structure Performance OU / Groups?
I'm planning on creating around 6000 departmental groups in AD. There are around 1000 departments, and each department will have around 6 groups, resulting in ~6000 groups.
I have two ways to do this:
either I put all 6000 groups in one root OU
or…

tortellini
- 5
- 2
0
votes
1 answer
Function that checks if an OU exists in Active Directory always returns false even if there is an existing OU
I am trying to create a powershell function to check if an active directory OU exists and have it return a true or false value to be used in conjunction with another function to create a user. The problem I am having is it always returns a false…

JeffVader
- 3
- 2
0
votes
4 answers
How to list logons on a specific computer?
I have to write a simple script which lists all users logon at every computer in a specific OU.
I have tried the function Get-UserLogon -OU '[distinguished name]' (see here) but it doesn't return any stdout.
Any alternatives?

Dario Corrada
- 51
- 6