AD - Query

karthik palani 1,036 Reputation points
2022-03-27T13:20:21.817+00:00

Hi All,

Is there any PowerShell script which moves the deactivated account to a OU and from there it removes all the group membership.

And it logs the activity as well in a text file. Please advice

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,462 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 45,906 Reputation points
    2022-03-27T14:20:53.767+00:00

    Perhaps not one script, but you'll find many examples of scripts that perform those individual actions. You can easily combine those examples to arrive at a script that does what you want.

    0 comments No comments