0 votes

I used the script below to try and accomplish this but I get an error. I did try to leave a comment but it would not let me.

I tried running the first example and I get

Exception calling "BindToObjectByDN" with "1" arguments: "Cannot parse ADsPath string." Stack trace: at GetUserSids, <No File>: line 13 at <ScrtiptBlock>,<No File>: line 13

Here is the two OU's I added to the first line: OU=05 - Service Users,DC=example,DC=local CN=Users,DC=example,DC=local

https://www.adaxes.com/script-repository/add-users-located-in-particular-organizational-units-to-unmanaged-accounts-s178.htm

by (150 points)
edited by

1 Answer

0 votes
by (150 points)

Was able to fix it by adding all OU's inside the " 05 - service users" OU

0

Hello Raul,

Probably the issue occurred because you have specified the value of the $ouDNs variable in the script incorrectly. It has to be an array of distinguished names of Organizational Units like so:

$ouDNs = @(
    "OU=05 - Service Users,DC=example,DC=local",
    "CN=Users,DC=example,DC=local"    
)

Related questions

0 votes
1 answer

We just busted our licence limit of 400, but we are only 320 employees. All the extras are either service accounts, external contractors accounts or old user accounts ... is reinstated on the 'managed accounts' list? Thank you for the guidance, Louis

asked Apr 11, 2022 by lw.fa (130 points)
0 votes
1 answer

Are PowerShell commands supposed to show up in the programming interface after adding the module to the Adaxes server? I've installed modules and they don't show.

asked Aug 18, 2020 by ComputerHabit (790 points)
0 votes
1 answer

For instance to execute a powershell script that enable MFA for all member in that group?

asked 4 days ago by samuel.anim-addo (20 points)
0 votes
1 answer

Hi all, Just wondering when Adaxes actually determines the current unmanaged/managed user counts - is it random, scheduled, or a manual thing? Also, does it randomly re-determine ... the script ran successfully every night, so I am not sure here. Cheers all.

asked Sep 22, 2020 by TheLexicon (180 points)
0 votes
1 answer

Hi, We are currently still running an older version of Adaxes (2014.1) and having an issue with our 2nd server of Adaxes that is in our DMZ. I would like to resolve this ... done to the environment. I am wondering if I can get any assistance on this. Thanks,

asked Jun 6, 2017 by Kobe46 (390 points)
2,937 questions
2,654 answers
6,870 comments
160,322 users