Hi

I am trying to export a list of all active/enabled users, how can you do it with get-admuser?

by (50 points)

1 Answer

by (216k points)
Best answer
0 votes

Hello,

The syntax is almost the same:

Import-Module Adaxes
Get-AdmUser -Filter '(Enabled -eq $True)'
by (50 points)
0

Hello

How can you run -searchbase to multiple OU's?

I tried to run -Searchbase "OU=x, OU=x, OU=x, DC=X, DC=X", "OU=x, OU=x, OU=x, DC=X, DC=X""

but gets error cannot convert 'system.object to the type system string required by parameter 'searchbase'. specified methor not supported

by (310k points)
0

Hello,

It is not possible to pass multiple OUs as the search base. Use the following script to achieve what you want:

Import-Module Adaxes

$ouDNs = @("OU=Sales,OU=Users,DC=example,DC=com", "OU=IT,OU=Users,DC=example,DC=com")

$allusers = @()
foreach ($dn in $ouDNs)
{
    $allusers += Get-AdmUser -Filter '(Enabled -eq $True)' -SearchBase $dn -SearchScope Subtree
}

Related questions

Hello, I have delegated the management of some groups to a restricted set of users through the self-service interface. These users are able to add and remove members from ... to export the membership list of the groups they manage?Thank you for your support.

asked Jul 24 by Simone.Vailati (530 points)
0 votes
1 answer

During user creation, I'd like to have an option to select a group from a list that is populated from all groups within a specific OU. Is that possible?

asked Sep 22, 2025 by MandiCrawford (20 points)
0 votes
1 answer

we'd like to build a New Joiner user account creation procedure and were wondering if Adaxes is able to read a SharePoint list and build a flow that can create user ... in MS365 Exchange online, if the respective new joiner is approved in the SharePoint list.

asked Aug 4, 2025 by Lucian (20 points)
0 votes
1 answer

Is there a standard list of web interface error codes with a map to their meaning? Some users are reporting receiving web interface error codes when they click on the approve\ ... do I look up the meaning of the error codes they receive? Adaxes version 2025.1

asked Jun 9, 2025 by ADuser (180 points)
0 votes
0 answers

We're testing Yubikeys for MFA in Microsoft Entra. Is it possible for us to pull a list of users with a registered Yubikey, and also get the serial number from Entra (shows ... report available to some admins in Adaxes, but I'm not sure how to pull that data.

asked Feb 14, 2025 by jgcovalt (70 points)
0 votes
2 answers