0 votes

Hi,
I would like to use the custom commands to deprovision an AD user.
Is there a way to automatically remove all groups (besides Domain Users which cannot be removed) from a user?

Thanks...

by (20 points)

1 Answer

0 votes
by (18.0k points)

Hello,

You can do it with the help of a script. Have a look at Example 2 in the following tutorial: Automatically Change Group Membership Using Scripts.

Related questions

0 votes
1 answer

I would like to have a script that removes the offboarded users from all teams groups

asked Jan 3 by bodson (20 points)
0 votes
1 answer

Hi all, I need some help with this builtin script. It's a good foundation for what I'd like to do but I need to be able to keep the user in two groups (one, ... this, some kind of output log of the tasks completed on the deprovisioned user).. Thank you!

asked Nov 30, 2017 by adriank (100 points)
0 votes
1 answer

Is it possible to use Property Patterns for Parameters in custom commands? I would like to be able to restrict certain characters that users are inputting, especially since some of these parameters are used for logon names etc. Thanks

asked Aug 19, 2020 by bavery (250 points)
0 votes
1 answer

All of our custom command use %adm-CustomAttributeText1% and we want to update that feild to department. Is there a script that we could run that will look trough out custom commands and charng from one to the other?

asked Feb 28, 2020 by hgletifer (1.3k points)
0 votes
1 answer

I'm learning how to use the Adaxes powershell commands. I've tried searching for a group and that fails to find anything but the local domain. ... one domain. Get-AdmGroup -AdaxesService ADAXES01.domain.com -Credential $myCredentials -Identity Administrators

asked Jul 29, 2020 by ComputerHabit (790 points)
3,326 questions
3,026 answers
7,727 comments
544,683 users