Random thoughts of an Exchange PFE

This blog is my effort to document and share interesting details about Exchange Server as I come across them in field, lab and community.

Browse by Tags

Related Posts
  • Blog Post: Script to change Address Book Service throttling on Exchange 2010

    If you are deploying BlackBerry in Exchange 2010 environment, one of the requirements is to change throttling limits on Address Book Service from default 50 to 100,000. While I reserve my judgment to what number is right, you will have to change it to some number above 50 for sure. If you have many CAS...
  • Blog Post: Exchange Team Blog Mobile and PowerShell Error Handling

    I admit the two topics don’t have anything in common except both has something to do with me. That’s why they are both being talked about in same post! So If you haven’t caught up on this yet, I created a Windows Phone App for the Exchange Team Blog . I am trying to ramp up on little bit of WP7 programming...
  • Blog Post: Accidental PowerShell 3 Get-Help discovery

    Get-Help has always been my favorite cmdlet. Anytime I am stuck, I was able to find lot more information about any given cmdlet when I need. Until today, my favorite feature was Get-Help's –online parameter. For the cmdlet that have specified online uri of help topic, get-help cmdlet –online...
  • Blog Post: How to install Update Rollups remotely on Exchange 2010 server

    If you are like me, you are always looking for ways to not leave your chair, or for that matter, not switch windows. When it comes to install Update Rollups on every Exchange 2010 server you have, the same applies. So I set out to find a way and I found one! Even though this requires some work upfront...
  • Blog Post: How to convert a word document to other formats using PowerShell

    I recently borrowed a Sony Reader Touch Edition from someone I know to try it out. As I started using Sony’s own library manager, I quickly got bored. I then tried open source Calibre which turned out to be a lot better interface but had a major flaw when it comes to supporting Sony Reader: It didn’t...
  • Blog Post: Ignoring SSL trust in PowerShell System.Net.WebClient

    This started as a discussion on why System.Net.Webclient does not have a way to ignore SSL trust and how VBScript was easier in trying to check URL and return certain string. It’s the later part which got me going. I wanted to prove that PowerShell is, well, more powerful and easier to use. I want on...
  • Blog Post: PowerShell script to edit remote registry

    Did you ever wanted to modify your registry or add a key/value pair to registry? Wished there was a script to help you do that? Even better, wished it can run remotely without PowerShell WinRM listener configured on target server? I had custom script that would modify certain registry entry but it was...
  • Blog Post: Script to disable IPv6 Components

    While most documentation you may come across states to not disable IPv6 components on Windows 7 or Windows 2008 servers, you may have instances where disabling IPv6 components may become necessary. If you have to disable IPv6 components, the procedure is pretty straight forward and is documented in KB929852...
  • Blog Post: Script to enable preview pane for PowerShell scripts

    If you are running Windows 7, you probably know what preview pane is. And if you use PowerShell and create ps1 scripts, you may also wonder how can you enable preview for PowerShell scripts in Windows Explorer. Well, Nate Bruneau shared how to edit registry to enable preview for ps1 scripts. Being a...
  • Blog Post: How to revert changes made by Enable-PSRemoting?

    Have you ever been in a situation where you have PowerShell Remoting enabled and you need to put the configuration back the way it was before Enable-PSRemoting was run? While it might seem that just running Disable-PSRemoting should suffice, it turns out to be a bit more work than you would think. Let...
  • Blog Post: How do I measure how long a command took to run in PowerShell?

    So this one might be pretty simple you say, just use measure-command right? But what if I already ran the command and didn’t time it? What if it took really long time and running it again isn’t an option? This is when built-in history helps! If you run Get-History | Get-Member You will see the following...
  • Blog Post: Script to report bad Apples!

    You may have seen Microsoft Support article “ Current issues with Microsoft Exchange ActiveSync and Third Party Devices ”. It documents multitude of problems with third party devices using ActiveSync. the list includes everyone’s favorite fruit devices that starts with an “i”. Shouldn’t be a surprise...
  • Blog Post: Every good thing must come to an end…

    And before you get a shock from the title, let me clarify, all I am talking about is PowerShell Scripting Games 2011 . I had a privilege of being one of the judges this year and I know I haven’t done it enough justice. I was planning to be a lot more active rating scripts as they rolled in. I have been...
  • Blog Post: Exchange Management Shell Error 500 - Internal Server Error

    I have come across this issue enough times that even if it is documented on TechNet it deserves mention here. When you launch Exchange Management Shell or try to connect to an Exchange 2010 Server remotely using PowerShell, you get error “500 – Internal Server Error. There is a problem with the resource...
  • Blog Post: PowerShell script to report uptime

    UPDATED - Fixed issues reporting boottime. 3/20/2012 I was reading Hey, Scripting Guy! article “ Calculating Server Uptime ” and decided to write a script that can do the same. While the article has very nice script that calculates uptime from event log, my script isn’t fancy and...
  • Blog Post: Mythbusters–Exchange Server 2010 and PowerShell Remoting

    A misconception that WinRM listener needs to be configured in order to be able to connect to Exchange Server 2010 had popped up a couple times in my conversations recently so I decided to clear the confusion. Guest blogging for my friends at IT Pro Africa, I have written the details on the blog post...
  • Blog Post: Script to configure static ports on Exchange Server 2010

    There is nothing new about this. If you have been reading about Exchange Server 2010 or have it deployed with hardware load balancer, chances are, you have read how to configure static ports on Exchange Server 2010 on TechNet Social wiki for Exchange 2010 . Chances are that you have also used my script...
  • Blog Post: Deceiving scopes of variables in a function

    I was recently troubleshooting a script when I came across a problem where a variable with defined scope was not retaining its value even though scope seemed correct. Let’s look at simplified example below: Function Global:Name-ofaFunction { $Global:VariableinQuestion = $null $VariableinQuestion ...
  • Blog Post: RBAC and Principle of Least Privilege

    Exchange 2010 introduced RBAC as a mechanism to manage access to administrative tasks at granular level which was not possible in previous versions of Exchange. While you may know how to use RBAC to create custom roles that maps to job functions in your environment, one particular feature tends to get...
  • Blog Post: Why does catch not catch?

    I ran into an interesting discussion with my customer today. He was writing a code block that looked like the following: Try { Get-MailboxServer Bogus } Catch { "Mailbox server doesn't exist" } Looking at the code, it’s very simple. Run a command in try block and if error is generated, report...
  • Blog Post: Using PowerShell to look up USCF member info

    If you are one of the chess players who play rated USCF (United States Chess Federation) games, you may have used their look up tool to find someone’s rating and other details, or may be your own after you completed a tournament. Being a PowerShell geek, I had to figure out how can I fetch the same information...
  • Blog Post: Microsoft Exchange 2010 PowerShell Cookbook Review

    Disclaimer: I am not paid to write about this book and the review written here is my own view. I was recently contacted by Packt Publishing about their recently published book “ Microsoft Exchange 2010 PowerShell Cookbook ”. I have voluntarily reviewed books in the past (i.e. Windows Server 2003 Security...