Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Microsoft Exchange Server Powershell Cookbook (Update)
  • Table Of Contents Toc
Microsoft Exchange Server Powershell Cookbook (Update)

Microsoft Exchange Server Powershell Cookbook (Update)

By : Jonas Andersson, Mike Pfeiffer
5 (4)
close
close
Microsoft Exchange Server Powershell Cookbook (Update)

Microsoft Exchange Server Powershell Cookbook (Update)

5 (4)
By: Jonas Andersson, Mike Pfeiffer

Overview of this book

This book is for messaging professionals who want to build real-world scripts with Windows PowerShell 5 and the Exchange Management Shell. If you are a network or systems administrator responsible for managing and maintaining Exchange Server 2013, you will find this highly useful.
Table of Contents (16 chapters)
close
close
15
Index

Removing disabled user accounts from distribution groups


A standard practice among most organizations when users leave, or have been let go, is to disable their associated Active Directory user account. This allows an administrator to easily re-enable the account in the event that the user comes back to work, or if someone else needs access to the account. Obviously, this has become a common practice because the process of restoring a deleted Active Directory user account is a much more complex alternative. Additionally, if these user accounts are left mailbox-enabled, you can end up with distribution groups that contain multiple disabled user accounts. This recipe will show you how to remove these disabled accounts using the Exchange Management Shell.

How to do it...

To remove disabled Active Directory user accounts from all the distribution groups in the organization, use the following code:

$groups = Get-DistributionGroup -ResultSize Unlimited
foreach($group in $groups){
 Get-DistributionGroupMember...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Microsoft Exchange Server Powershell Cookbook (Update)
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon