PS Script to email enable a lot of public folders

%3CLINGO-SUB%20id%3D%22lingo-sub-1160791%22%20slang%3D%22en-US%22%3EPS%20Script%20to%20email%20enable%20a%20lot%20of%20public%20folders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1160791%22%20slang%3D%22en-US%22%3E%3CP%3EI%20just%20got%20hired%20by%20a%20company%20that%20was%20recently%20spun%20off%20from%20another%20one.%26nbsp%3B%20As%20part%20of%20that%20divestiture%20a%20couple%20thousand%20PF's%20were%20migrated%20across%20via%20some%20migration%20software.%26nbsp%3B%20The%20problem%20is%20that%20the%20software%20didn't%20bring%20across%20email%20addresses%20or%20the%20fact%20that%20they%20were%20email%20enabled.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERight%20now%20that%20same%20software%20is%20taking%20care%20of%20automatically%20forwarding%20all%20emails%20that%20come%20in%20to%20the%20old%20company's%20PF's%20to%20the%20new%20ones%2C%20so%20no%20one%20has%20really%20noticed%20that%20the%20new%20company's%20PF's%20are%20NOT%20email%20enabled.%26nbsp%3B%20I%20need%20to%20fix%20that%20because%20in%207%20days%20that%20auto%20forwarding%20comes%20to%20an%20end%20%3A(%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%202%20spreadsheets%20from%20the%20old%20email%20system.%26nbsp%3B%20One%20contains%20the%20GUID%20%26amp%3B%20identity%20of%20every%20PF%20on%20the%20old%20system%2C%20and%20the%20other%20contains%20the%20GUID%20and%20smtp%20address%20of%20every%20PF%20on%20the%20old%20system.%26nbsp%3B%20I%20have%20since%20done%20a%20Replace%20to%20change%20to%20old%20domain%20name%20to%20the%20new%20one.%26nbsp%3B%20Now%20I%20need%20to%20find%20a%20way%20to%20merge%20those%20two%20spreadsheets%20using%20the%20GUID%2C%20and%20then%20get%20a%20PS%20script%20that%20can%20go%20in%20and%20use%20the%20identity%20to%20find%20the%20PF%20and%20email%20enable%20it%20with%20the%20proper%20smtp%20address.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESounds%20easy%2C%20right%3F%3F%3F%26nbsp%3B%20The%20problem%20is%20I%20suck%20at%20powershell%2C%20and%20with%20thousands%20of%20these%20I%20have%20no%20way%20to%20do%20them%20all%20manually.%26nbsp%3B%20I've%20been%20googling%20hoping%20to%20find%20some%20handy%20dandy%20script%20out%20there%20that%20would%20do%20all%20of%20this%2C%20but%20so%20far%20no%20luck.%26nbsp%3B%20If%20anyone%20knows%20of%20something%20out%20there%20that%20would%20help%20I%20would%20VERY%20much%20love%20to%20hear%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3CP%3ETed%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1160791%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1164256%22%20slang%3D%22en-US%22%3ERe%3A%20PS%20Script%20to%20email%20enable%20a%20lot%20of%20public%20folders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1164256%22%20slang%3D%22en-US%22%3EHas%20the%20identity%20(path)%20remain%20unchanged%3F%20Guids%20are%20different%2C%20so%20you%20may%20need%20to%20use%20that%20to%20map%20old%20PF%20to%20new%20PF%2C%20not%20Guids.%20Or%20the%20mail%20forwarding%20set%20on%20the%20old%20PFs.%20Hit%20me%20up%20on%20mail%20with%20excerpts%20of%20the%20two%20files%20and%20I'll%20see%20if%20I%20can%20get%20you%20going.%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I just got hired by a company that was recently spun off from another one.  As part of that divestiture a couple thousand PF's were migrated across via some migration software.  The problem is that the software didn't bring across email addresses or the fact that they were email enabled.

 

Right now that same software is taking care of automatically forwarding all emails that come in to the old company's PF's to the new ones, so no one has really noticed that the new company's PF's are NOT email enabled.  I need to fix that because in 7 days that auto forwarding comes to an end :(

 

I have 2 spreadsheets from the old email system.  One contains the GUID & identity of every PF on the old system, and the other contains the GUID and smtp address of every PF on the old system.  I have since done a Replace to change to old domain name to the new one.  Now I need to find a way to merge those two spreadsheets using the GUID, and then get a PS script that can go in and use the identity to find the PF and email enable it with the proper smtp address.

 

Sounds easy, right???  The problem is I suck at powershell, and with thousands of these I have no way to do them all manually.  I've been googling hoping to find some handy dandy script out there that would do all of this, but so far no luck.  If anyone knows of something out there that would help I would VERY much love to hear it.

 

Thanks.

Ted

 

1 Reply
Highlighted
Has the identity (path) remain unchanged? Guids are different, so you may need to use that to map old PF to new PF, not Guids. Or the mail forwarding set on the old PFs. Hit me up on mail with excerpts of the two files and I'll see if I can get you going.