Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Find Exchange 2007 Public Folders with trailing spaces

 
Logged in as: Guest
arrSession:exec spGetSession 2,5,61934
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Windows PowerShell >> Find Exchange 2007 Public Folders with trailing spaces
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Find Exchange 2007 Public Folders with trailing spaces - 6/27/2008 9:45:21 AM   
  turranx


Posts: 41
Score: 0
Joined: 2/7/2006
Status: offline
We had a couple hundred Public Folders (PF) on our Exchange 2000 server.  These all needed to be migrated to the Exchange 2007 server.  I added the Ex2007 server as a replica to each PF and waited about a week while the replication took place.  While reading http://msexchangeteam.com/archive/2007/06/25/445429.aspx to learn how to remove the Ex2000 server from the replication list, I found that a number of the PFs had trailing spaces upon them; Ex2007 doesn't like this at all.     I whipped up this one-liner to list out which PFs had this problem so I could manually correct it.  This run successfully on my Ex2007 SP1 server within the Exchange Management Shell.


      


      
I know this pales in comparison to some of the VBS stuff I churned out in the past, but I am brand spanking new to PowerShell.  Start small, work my way to gargantuan.

_____________________________

Microsoft Windows 2000 Scripting Guide - The best book for newbie scripters
http://www.myspace.com/Evil__Overlord
 
 
Post #: 1
 
 RE: Find Exchange 2007 Public Folders with trailing spaces - 6/28/2008 7:32:41 AM   
  dm_4ever


Posts: 2559
Score: 40
Joined: 6/29/2006
From: Orange County, California
Status: offline
Thanks for sharing....we're not using Exchange 2007 at work yet, but this may come in handy when we finally do.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to turranx)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Windows PowerShell >> Find Exchange 2007 Public Folders with trailing spaces Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts