Skip to content

Category Archives: Powershell

Something I noticed in Powershell v3

So, let’s say you have an object that contains objects. A bunch of AD users whose first name is Bob, for example. $persons = get-aduser -filter {givenname –eq “Bob”} Now you want to display the list of objects, but only one property of those objects, like DisplayName. How would you do that? In Powershell v3, […]

Exchange TotalDeletedItemSize and how to tame it when it runs rampant

Exchange 2010 does a lot of activity in the background to ensure that you don’t permanently lose things that you didn’t mean to lose. Without going into the actual code of Exchange, suffice it to say that the steps it takes to do this can sometimes cause loops and create copies of inconsequential messages over […]

Make UCS Even Better With Powershell

I try to use Powershell whenever I can. It’s been a huge step in the right direction for Microsoft, and it’s made a lot of sysadmins feel more comfortable managing and automating larger environments. So, when our UCS vendor told me about the Powershell module that Cisco provides to manage UCS, I was practically salivating. […]

A Simple Powershell Script to Show RPC Connections to Exchange CAS Servers

I ran into to this when I was trying to shut down a CAS box to apply patches. We have two CAS servers in a Windows Load balanced Array, so the least disruptive way to kick everyone off a node so you can reboot it is to order a Drainstop on one node. This keeps […]