Solved

Enable all AD Users in a group with powershell

Posted on 2014-10-01
2
226 Views
Last Modified: 2014-10-01
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
Comment
Question by:MilesLogan
2 Comments
 
LVL 28

Accepted Solution

by:
becraig earned 500 total points
Comment Utility
import-module ac* 
Get-ADGroupMember -Identity <groupname> | select -expa SamAccountName  | % {Enable-ADAccount  -Identity $_ }

Open in new window

0
 
LVL 2

Author Comment

by:MilesLogan
Comment Utility
too eazy for you ! thank you so much !
0

Featured Post

Don't lose your head updating email signatures!

Do your end users still have the wrong email signature? Do email signature updates bore you or fill you with a sense of dread? You can make this a whole lot easier on yourself by trusting an Exclaimer email signature management solution. Over 50 million users do...so should you!

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now