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

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

I am using this script to remove all users from groups when they are terminated. This script doesn't remove users from Azure only groups just on prem. How would I change ... .LogMessage("Can not remove $U from $GN"+$_.Exception.Message, "Information") } }

asked Jun 18 by mightycabal (1.0k points)
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

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,577 questions
3,266 answers
8,282 comments
548,009 users