0 votes

Hello,

I am wanting to write a script to have Adaxes add/remove all authorized DHCP Servers in the domain to a certain security group weekly. Dynamically adding and removing machines from the group depending on if their authorization status changes. Also need this logged in the execution log for what is added and removed. I know I can use Get-DhcpServerInDC command to get a list, but this is not in a DN Format for a variable. It's just the FQDN.

image.png

I am looking to run this in scheduled tasks as a weekly command using the run powershell command. If you have a better soulution then PS, then let me know.

Thanks in advance!

by (20 points)
0

Hello,

Unfortunately, we were not able to find much information on DHCP computers that would help us suggest a solution. Are they available in AD as computer objects? If so, do you see those in Adaxes?

What exactly do you mean by authorization status? Is it stored in an AD property?

0

Hello,

I do not believe they have any values currently in AD, otherwise I would use the standard If Property Value Equals X, then add to group.

However you can see from the screenshot, that it populates a list as FDQN for the machine. I wondered if there was a way to pass the result list and maybe have the directory Searcher find matching accounts in AD?

I know how to get the list, but the question is how do you pass the results into Adaxes? Can Adaxes take a result list and pass it as a paramater?

Thanks!

1 Answer

0 votes
by (287k points)

Hello,

Thank you for clarifying. In this case, using a script is the only way. Unfortunately, we do not have any scripts on this topic and won’t be able to assist you with one as it is not related to Adaxes functionality. However, our SDK might be helpful: https://adaxes.com/sdk/ServerSideScripting.

Related questions

0 votes
1 answer

I'm trying to automate adding users who are enrolled in MFA to an AD group. The scripts I found elsewhere here that do not work so I believe they may have been written against a prior Adaxes version or referencing a report that does not meet our needs.

asked May 31 by neal (50 points)
0 votes
1 answer

Hello, Is there a PS script available to add a user to an o365 group (o365 only - not synced to AD) that can be used after user creation in a business rule? Thanks very much.

asked Oct 31, 2018 by Jasonmh (540 points)
0 votes
0 answers

Hi, I'm currently working with setting up a new Adaxes solution for a customer at my company. The customer needs a solution that can add a security group with full ... help me out here :-) That would be greatly appreciated. Best Regards, Kristoffer Høie.

asked Jun 29, 2016 by krihoie (20 points)
0 votes
1 answer

I would like users to use Adaxes to add themselves or others to a group, but instead of it just working, it has to go thru an approval process and be approved by the group owner before they are added. Thanks!

asked Jun 30, 2021 by RayBilyk (240 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)
3,526 questions
3,217 answers
8,197 comments
547,625 users