Gather ActiveSync Device Information From Exchange 2007

October 21st, 2009 by Mitchell Lintzen

To gather a complete list of mobile devices that are connecting to your Exchange 2007 Client Access Servers we need to retrieve the full list of mailboxes and then pipe that to the Get-ActiveSyncDeviceStatistics commmand as such:

$mob_devices = get-mailbox -ResultSize unlimited |%{ Get-ActiveSyncDeviceStatistics -mailbox $_}

That command will take a long time depending on how large your organization is. Then we’ll need to iterate through each device and weed out those devices that are no longer attempting to sync with Exchange. I’ve found that looking back 14 days should be enough time to eliminate the stale partnerships.

foreach($device in $mob_devices){
if((get-date).adddays(-14) -le $device.lastsyncattempttime){
$smtp = $device.identity.smtpaddress
$name = (get-mailbox $smtp).name
$type = $device.devicetype
“$smtp    $name    $type” | out-file -append ./mob_devices.txt
}
}

The last line outputs the SMTP address, user name, and device type to a text file. Have fun!

Exchange 2007 Powershell Identity Management Automated Mailbox Provisioning Script

October 18th, 2009 by Mitchell Lintzen

Sun LDAP

Exchange 2007 Powershell Automated Distributrition List Synchronization Script

October 18th, 2009 by Mitchell Lintzen

Create & Synchronize Membership with Active Directory OU – Containers

Exchange 2007 Powershell Mailbox Migration Script

October 17th, 2009 by Mitchell Lintzen

For Single Geographical Server(s) Location Microsoft Exchange 2007 Topology

Database IO & Storage CapacityLoad Balancing

Alphabetic Database Naming Scheme

Based On Statistical Analysis Of Last Name Distribution Within Active Directory Mail-Enabled Accounts

SSD WordPress Blog Host

October 8th, 2009 by Mitchell Lintzen

If you’d like to test the speed of an SSD storage based WordPress site, you are now. I don’t think you’ll see any delays because I rarely do as I work from the console of the same computer. This is an Intel Core 2 Duo 2.66GHz 4GB RAM with the OCZ Vertex 120GB SSD drive and it holds the system, applications, and virtual machine files. I’m actually running Ubuntu 9.04 and Mac OS X 10.5.8 in VMware sessions and Ubuntu is serving this WordPress site. The Windows 7 host And the VM sessions are fluid in general now and the box rarely hiccups despite all I throw at it. I’m writing this blog because I noticed that accessing it from work and from here locally was faster than most any other site I’ve been visiting lately. Anyway, you’re gonna enjoy the changes that SSD technology is going to make in your computing world.

iTunes Management With Powershell

October 7th, 2009 by Mitchell Lintzen

I recently converted from Windows Mobile to iPhone and I needed to figure out a way to manage my mobile MP3 library. With Windows Mobile I used Powershell and accessed the file system on my Windows Mobile device as a USB flash drive. To manipulate playlists on the iPhone I tried a few applications such as Winamp and MediaMonkey but they would not let me apply the time & genre based logic that I needed. So I found iTunesLibraryEditor which allowed me to access and modify iTunes playlists by instantiating the iTunesLibraryEditor object as such:

[system.reflection.assembly]::loadfile(“D:work1Sync-iPhoneiTunesLibraryEditorituneslibraryeditor.dll”)
$lib = new-object ituneslibraryeditor.ituneslibrary

Check out the code in my Powershell script library: BinaryAgent Powershell Repository. Look for “Sync-iPhone.zip” in the /Sync-iPhone/ directory. Hope you find it useful.

Linux Frustrations

October 5th, 2009 by Mitchell Lintzen

Just finished about 12 hours of WordPress install on a Ubuntu 9.04 VM I downloaded. The procedure was complicated in that the solution was to support multiple (2) domains but it should not have taken nearly that long. I have a fair amount of experience with Linux although most of it is stale currently. The problem with Linux, as I see it, is that you have to have a wealth of trivial knowledge just to be proficient. Then, to make it worse, there are multiple flavors of Linux and doing stuff is different on all of them. So when you search for answers you’ll likely get 80% inaccurate info.

Okay, I’m done. Now I can enjoy the fruits of my labor. 🙂

Bitnami