Category Archives: Exchange Cmdlets

Limit Exchange 2010 Email Attachment Size for users with PowerShell.

Recently had a request to limit the email attachment size for specific users within the Exchange Organization. The following one line script took care of the request: New-TransportRule -Name ‘Attachment Size Limit’ -Comments ” -Priority ‘0’ -Enabled $true -FromMemberOf ‘AttachmentSizeLimit@Labnet.net’ … Continue reading

Posted in Exchange 2010 SP2, Exchange Cmdlets, Exchange Management Shell, Microsoft Exchange | Tagged , , , , , | Leave a comment

Creating New Equipment Address List in Exchange 2010.

The steps and cmdlets below enabled me configured a separate address list in Exchange 2010 to manage all Equipment. Create the Address List and specify the Recipient Filter: [PS] C:\>New-AddressList -name “All Equipment” -RecipientFilter {RecipientType -eq “UserMailbox” -and RecipientTypeDetails -eq … Continue reading

Posted in Active Directory, Exchange 2010 SP2, Exchange Cmdlets, Exchange Management Shell, Microsoft Exchange | Tagged , , , , , | Leave a comment

Creating Resource Mailbox Resource Property Schema in Exchange Server 2010.

We’ve added a few conference rooms and Equipment mailboxes and I decided to add custom resource properties to distinguish the rooms and equipment . The properties indicate what features are specific to a resource like the conference room conference call … Continue reading

Posted in Exchange 2010 SP2, Exchange Cmdlets, Exchange Management Shell, Microsoft Exchange, PowerShell | Tagged , | Leave a comment

Converting a User Mailbox to Resource Room Mailbox using PowerShell.

In past versions of Exchange Server, specifically Exchange 2003, managing Resource Room mailboxes was not exactly a straight forward process. In my organization at the time, to manage room Calendars and bookings for Conference rooms (they were not referred to … Continue reading

Posted in Exchange 2010 SP2, Exchange Cmdlets, Exchange Management Shell, PowerShell, PowerShell 3.0, WIndows 8.1 | Tagged , | 1 Comment

Renaming AD User Object Surname Property.

The following script renames the Surname property of an Active Directory User Object. The script requires PowerShell 3.0. The only edit required is the organizational Exchange Server name specified in the New-PSSession cmdlet. The script accepts the Given Name, Surname … Continue reading

Posted in Active Directory, Exchange 2010 SP2, Exchange Cmdlets, Exchange Management Shell, PowerShell, PowerShell 3.0, WIndows 8.1, Windows Server 2012, Windows Server 2012 R2 | Tagged , | Leave a comment

PowerShell 3.0 Script creates AD user and Exchange Mailbox.

This interactive script requires PowerShell 3.0 . It creates an Active Directory user and their corresponding mailbox using a remote session at the same time. It should work out of the box, but specific variables will have to be edited … Continue reading

Posted in Exchange 2010 SP2, Exchange Cmdlets, Exchange Management Roles, Exchange Management Shell, Microsoft Exchange, PowerShell, PowerShell 3.0, WIndows 8.1, Windows Server 2012, Windows Server 2012 R2 | Tagged , , , | 2 Comments

My Frustrating Experience with the Exchange Trusted Subsystem USG.

I was doing some quick research recently with a topic totally unrelated to Exchange. Due to some resource constraints, I decided to install and setup an instance of Spiceworks (Helpdesk and Asset Management tool) on my Lab Exchange 2010 SP2 … Continue reading

Posted in Exchange 2010 SP2, Exchange Cmdlets, Exchange Management Roles, Exchange Management Shell, Microsoft Exchange, RBAC, Role Based Access Control | Tagged | 5 Comments

How to Customize Exchange 2010 RBAC Roles for Delegating User/Contact Management Part 2.

As a follow up to the last post, I decided to further restrict the Support Staff users’ access to the available Custom ‘Address Book Management’ Role cmdlets. The following commands enabled me accomplish this objective: 1) C:\>Get-ManagementRoleEntry -Identity “Address Book … Continue reading

Posted in Exchange 2010 SP2, Exchange Cmdlets, Exchange Management Roles, Exchange Management Shell, Microsoft Exchange, PowerShell, RBAC, Role Based Access Control | Tagged , , , , , , , , , | Leave a comment

How to Customize Exchange 2010 RBAC Roles for Delegating User/Contact Management Part 1.

I recently received a request for specific users to be able to modify users and contact information for the HR department. I immediately thought of Exchange Role Based Access Control. Personally, I think this is one of the best features … Continue reading

Posted in Exchange 2010 SP2, Exchange Cmdlets, Exchange Management Roles, Exchange Management Shell, RBAC, Role Based Access Control | Tagged , , | Leave a comment

How to remove/delete email sent to wrong user(s) using Search-mailbox cmdlet

I recently came by a situation where confidential email was mistakenly sent to the wrong users. I was asked to find a way to delete the email. I knew I could use the Search-mailbox cmdlet since this is an Exchange … Continue reading

Posted in Exchange 2010 SP2, Exchange Cmdlets, Exchange Management Shell, PowerShell | Leave a comment