Book Image

Active Directory with PowerShell

By : Pamarthi Venkata Sitaram, YELLAPRAGADA U PADMAVATHI
5 (1)
Book Image

Active Directory with PowerShell

5 (1)
By: Pamarthi Venkata Sitaram, YELLAPRAGADA U PADMAVATHI

Overview of this book

Table of Contents (16 chapters)
Active Directory with PowerShell
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Deleting a security group


When a group is no longer required, it needs to be removed or deleted from Active Directory in order to keep the database clean and up-to-date. Before performing the delete operation, make sure it has no members inside it. If there are members and this group is provisioned for any network resources access, then the user will face problems. Once the group is deleted, it is difficult to revert the change unless you have efficient restoration mechanisms in your environment. Also, performing such restore operations is not straightforward and can be done only by specialists. Given these reasons, it is important to ensure that there are no members in the group before deletion.

A security group in Active Directory can be deleted using the Remove-ADGroup cmdlet. Similar to removing group membership, deleting the group also prompts for confirmation. It can be suppressed by using the same logic that we applied while dealing with the Remove-ADGroupMember cmdlet, as shown in...