[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

Enable all AD Users in a group with powershell

Hi EE

I dont know where to really start with this , does anyone have a script that will enable all Active Directory users
who are members of a particular AD group ?
0
MilesLogan
Asked:
MilesLogan
1 Solution
 
becraigCommented:
import-module ac* 
Get-ADGroupMember -Identity <groupname> | select -expa SamAccountName  | % {Enable-ADAccount  -Identity $_ }

Open in new window

0
 
MilesLoganAuthor Commented:
too eazy for you ! thank you so much !
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now