Skip to main content

Posts

Showing posts with the label Exchange 2013

How to add the Exchange Commands to the PowerShell ISE Command Add-on Feature

I love it when my class makes me look at technology from a different perspective.  This week I am delivering a class to 23 IT pros in the United States and Holland.  It is a bit of a time zone challenge.  One member of the class asked about using snap-ins with the PowerShell ISE Command Add-On feature. The Command Add-On allows you to construct PowerShell commands graphically and apply them to your code.  The Command Add-on is visible by default, but if you turned yours off, you can turn it back on with this procedure: Click View on the PowerShell ISE tool bar. Click Show Command Add-on . The command add on will show you all of the commands currently loaded in memory.  For Exchange administrators, if they do not load the Exchange Snap-In with a profile script, they need to do so manually.  First load the snap-in into the ISE’s memory: Add-PSSnapin -Name Microsoft.Exchange.Management.PowerShell.E2010 Ne...

How to Hide a Mailbox from Exchange’s Global Address List

Good thing I fired up an Exchange server this week’s for my PowerShell class.  Here is a quick answer to a problem one of the my class attendees had.  How to hide someone from the Global Address List (GAL) using PowerShell.  In the Exchange Admin Center, you can configure this in the user’s mailbox general properties. We had a discussion about what is in the GUI and what is in PowerShell. The direction that Microsoft is moving is a GUI free environment, at least on the servers.  PowerShell is designed to do what the GUI can, and cannot do.  We simply need to find the path.  Fortunately, the path to success on this one was simple. 1 2 Get-Mailbox -Identity jyoder | Set-Mailbox -HiddenFromAddressListsEnabled $True Line 1 will get the mailbox object of the user in question and pipe the object to line 2. Line 2 uses the Set-Mailbox cmdlet and it’s HiddenFromAddressListEnabled property.  When set to $True, the address is hidden.  Let...

Listing Public Folder Permissions with PowerShell

We started off class this morning in a Q&A session.  One of the questions was how to get the public folder permissions on an Exchange Server.  In this example, Exchange Server 2013 is being used. 1 2 Get-PublicFolder -Recurse |     Get-PublicFolderClientPermission Line 1 Gathers all of the Public folder objects, including subfolders. Line 2 Gathers the user rights on each public folder and then displays them FolderName            User                  AccessRights                                                       ----------     ...

Listing Public Folders in Exchange Server

This weekend I built an entirely new virtual environment for my PowerShell classes moving forward.  Essentially I did this to add in some SQL, Exchange and DSC scenarios.  Just in time to.  I have two Exchange administrators in my PowerShell class this week here in Fort Wayne so I am using my new setup to enhance the class.  Here is the first one. How do I let all of the public folders, including sub folders? The Get-PublicFolder cmdlet can be used for this.  Here is the public folder structure that I created using the New-PublicFolder cmdlet. Level 1 Level 2 Level 3 Folder1     Folder2       FolderA       Folder1A     Folder2A   FolderB   This command will recover all the public folders and their parents. PS C:> Get-PublicFolder -Recurse | Select -Property name,parentpath   Name         ParentPath     ...