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 (210 points)
edited by

1 Answer

0 votes
by (210 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

I need to add many check-box list items to a Custom Command, I think the best way to do this is via PowerShell rather than through the UI. What's ... Softerra.Adaxes.Interop.Adsi.Parameters.IAdmParameterCheck[]]$ItemsList # Also doesn't work $command.SetInfo()

asked Jan 4 by Viajaz (210 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 Jan 27, 2023 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 (200 points)
3,569 questions
3,259 answers
8,275 comments
547,986 users