Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Active Directory with PowerShell

You're reading from   Active Directory with PowerShell Learn to configure and manage Active Directory using PowerShell in an efficient and smart way

Arrow left icon
Product type Paperback
Published in Jan 2015
Publisher Packt
ISBN-13 9781782175995
Length 230 pages
Edition 1st Edition
Concepts
Arrow right icon
Authors (2):
Arrow left icon
YELLAPRAGADA U PADMAVATHI YELLAPRAGADA U PADMAVATHI
Author Profile Icon YELLAPRAGADA U PADMAVATHI
YELLAPRAGADA U PADMAVATHI
Pamarthi Venkata Sitaram Pamarthi Venkata Sitaram
Author Profile Icon Pamarthi Venkata Sitaram
Pamarthi Venkata Sitaram
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Let's Get Started FREE CHAPTER 2. Managing User and Computer Objects 3. Working with Active Directory Groups and Memberships 4. Configuring Group Policies 5. Managing Domains, Organizational Units, Sites, and Subnets 6. Advanced AD Operations Using PowerShell 7. Managing DFS-N and DFS-R Using PowerShell 8. Managing Active Directory DNS Using PowerShell 9. Miscellaneous Scripts and Resources for Further Learning Index

Deleting user accounts

The Active Directory PowerShell module has a cmdlet called Remove-ADUser to delete user accounts from Active Directory. Alternatively, the Remove-ADObject cmdlet can be used. The Remove-ADUser cmdlet is designed to deal with user accounts removal. We will use this cmdlet throughout the examples in this section.

The requests for removal of user accounts increase as the attrition rate increases in your organization. You get requests from HR to delete user accounts on a frequent basis either when an employee leaves the organization or he/she turns down the offer just before joining.

Tip

Most organizations won't delete user accounts when an employee leaves the organization. Instead, they will hide these from the Global Address List/Book (GAL), remove them from all groups, disable the mailbox, and keep the ID in a disabled state. Such accounts can be enabled if the employee rejoins the company later.

Removing a user account from Active Directory is a straightforward...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime