PowerShell to change 1 license option while retaining services

In looking over this code: http://blogs.technet.com/b/zarkatech/archive/2012/12/05/bulk-migrate-office-365-licenses.aspx 
I have about 700,000 licenses to change however what I am trying to accomplish is presented a challenge for me.

The script in the link above looks at each user's enabled (or disabled) Services under a particular AccountSkuId
2015-07-30-0330.pngBut it looks specifically at Licenses[0]

(Get-MsolUser -User $Upn).Licenses[0].ServiceStatus

In my case I have 8 different SKUs.

What I would like to accomplish is to move one service from one SKU to another.
For example, I want to move Office Pro Plus from "ourtenant:STANDARDWOFFPACK_IW_STUDENT" to "ourtenant:STANDARDWOFFPACK_STUDENT".  However, I need to know each service that is enabled currently for the "target" SKU so I can leave it the same way I found it, just now with Office Pro Plus enabled.

I also need to make sure that the "source" SKU has all the same services, except Office Pro Plus will be disabled after the script is run.

Also noticed this script that moves through the licenses but I still cannot put it all together


Thank you!
K BAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Vasil Michev (MVP)Commented:
Check this one: http://blogs.technet.com/b/cloudpfe/archive/2014/01/30/how-to-change-office-365-licenses-in-bulk-respecting-the-license-options.aspx

Just replace the SKUs on top, and adjust the disabled services if needed.

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
K BAuthor Commented:
Vasil, you are a powerhouse!!!  Thank you so much!
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

From novice to tech pro — start learning today.