Exchange Mailboxes and ActiveSync Policies

Hello all!

I have written a PowerShell script that runs every night at midnight.  Its purpose is to create mailboxes for new users added in the last 24 hours.  As all of the user creation logic is closely integrated with third party applications, and completed by using PHP scripts, I cannot just use the new-user cmdlet.  Instead, I use the enable-mailbox cmdlet.

The Exchange environment is a mixed environment, with Exchange 2003 as well as Exchange 2007.  The PHP scripts are run on a Server 2003 domain controller, and used to automatically generate the Exchange 2003 mailboxes.  With Exchange 2007, this luxury no longer exists.

So the PowerShell script runs and executes flawlessly.  However, there seems to be a problem with the ActiveSync policy, or the application of said policy.  After the creation of the mailbox in this manner, there's no option to "Manage mobile devices" anywhere for that user.  We were able to hunt it down to a flag in ADSIEdit, and can go in and configure this manually.  However, this really isn't a realistic scenario, as the college has an influx of new users every semester.

I have tried manipulating the value of the Exchange ActiveSync boolean both through the EMC as well as PowerShell.  I have tried moving the mailbox to a different Exchange 2007 mail store.  Nothing.  Still missing.  However, if I move it to Exchange 2003, then move it back to Exchange 2007, voila!

What's going on with this?  Does anyone have any ideas?

TIA,
Melanie
learjetta96Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

paarunCommented:
I think you already have a good work around in place. Why not let the php script create mailboxes in exchange 2003 as usual and you just run a move-mailbox powershell command sometime early morning to move the mailboxes to Exchange 2007?
0
learjetta96Author Commented:
My only concern with this work around is that when we finally decommission the 2003 server (hopefully this summer), we'll still be left with this problem to tackle.  It does put it off, but it doesn't fix the issue.
0
Shreedhar EtteCommented:
Hi,

Does the Exchange 2007 is updated with the latest service packs and rollups?

---------
Shree
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

learjetta96Author Commented:
It is up to date as of about 3 weeks ago.
0
Shreedhar EtteCommented:
What is the latest service pack and rollup on the exchange 2007?
0
learjetta96Author Commented:
I believe we are going to punt this to Microsoft, as it should be working.  There are some other weird things happening on the server as well, so at this point employing Microsoft's help is a better idea.

Thanks folks!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.