Solved

Need to remove multiple DL's and security groups

Posted on 2016-11-10
2
72 Views
Last Modified: 2016-11-11
I need to bulk remove many security groups and DL's. Security groups and DL's are located in different OU's.

Can someone help me with a script?.

Thanks in advance!!
0
Comment
Question by:A D
2 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
ID: 41882077
If you are asking to delete groups from AD then use Remove-ADgroup
Example.. If you have a list of groups to remove in a text file, use following code to remove them from AD..
GC C:\temp\groups.txt | %{Remove-ADgroup $_}

Open in new window

0
 

Author Closing Comment

by:A D
ID: 41883632
Thanks Subsun. Worked perfectly!!
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The related questions "How do I recover the passwords for my Q-See DVR" and "How can I reset my Q-See DVR to eliminate a password" are seen several times a week.  Here we discuss the grim reality of the situation.
There's a lot of hype surrounding blockchain technology. Here's how it works and some of the novel ways it' s now being used - including for data protection.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

808 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