Posts

Showing posts from February, 2018

Managing Recipient Addresses using CPolydorou.Exchange

Managing the a recipient's addresses can be a time consuming process since it involves the multi value Active Directory attribute "proxyAddresses". This can be tricky when using PowerShell, especially for the less experienced administrator. Since I have also wasted a lot of time on this, I decided to make things easier and write a few functions to update the proxy addresses of objects. Getting To get the proxy addresses of an object, simply use the Get-RecipientAddress function with the identity of the recipient. [PS] C:\>Get-RecipientAddress -Identity cpolydorou@lab.com Identity                               Type Address              Primary --------                               ---- -------              ------- LAB.local/LAB/Users/Christos P...

Searching IIS logs with Search-IISWebsiteLog

Today I'd like to talk about the Search-IISSiteLog cmdlet that's part of the CPolydorou.IIS module. This cmdlet can be used in order to search text base log files, especially IIS website logs. Let's dive right in and search the Exchange IIS logs for the requests of a specific user! We'll start by getting the sites on an Exchange 2013 server: PS C:\> Get-Website Name             ID State   Physical Path ----             -- -----   ------------- Default Web Site 1  Started %SystemDrive%\inetpub\wwwroot Exchange Back En 2  Started C:\inetpub\wwwroot Since we want to search for a user's requests, we'll use the "Default Web Site" website. Our exchange servers are named "exchange2013a" and "exchange2013b". The Search-IISSiteLog command would be: Search-IISSiteLog -WebSite "Default Web Site" `            ...