Use Powershell to delete Outlook offline address book remotely.
Chris McKinley | September 2, 2010Over the summer we moved mail to Exchange 2010 sp1 and being a school we also have new members of staff joining.
The result is that a few people are having trouble finding certain people in their outlook address book when they get back after their summer break.
I’ve done a quick powershell script to remove the offline address book files remotely. Make sure the user has closed outlook*, fire up Powershell ISE as administrator and then run this:
$comp = read-host “Computer Name”
$user = read-host “Login Name”
cd \\$comp\c$\Users\$user\AppData
dir -Recurse -Filter *.oab | remove-item

It will prompt for a computer name and a login name of the user you want to remove the files for. Obviously you will need appropriate network permissions.
When the reopen outlook they will have no problems finding all the new staff members they need to send to!
*If you want to go power(shell) crazy you could script the closing of the outlook process.
















