+ Post New Thread
Results 1 to 10 of 10
Cloud Services Thread, Office 365 auto-assign licenses in Technical; Apologies if this is somewhere else, I can't seem to find it (by all means post me a link if ...
  1. #1
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,183
    Thank Post
    206
    Thanked 221 Times in 190 Posts
    Rep Power
    72

    Office 365 auto-assign licenses

    Apologies if this is somewhere else, I can't seem to find it (by all means post me a link if its easier!)

    I have Office 365 all working the way I want it: SSO, Address Book Policies etc etc. However, when a new user is added to our Active Directory, they sync to O365 but are not assigned licenses. What is the easiest way to automate this? I can filter between staff and students via Powershell by querying the 'Office' attribute which I have set to 'Student' for the kids (if that helps?)

    Is there anyway to do this that doesn't involve Powershell?

    Cheers

  2. #2
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,183
    Thank Post
    206
    Thanked 221 Times in 190 Posts
    Rep Power
    72
    I guess not?

  3. #3
    jamesbmarshall's Avatar
    Join Date
    Feb 2010
    Location
    Reading, UK
    Posts
    502
    Thank Post
    26
    Thanked 223 Times in 154 Posts
    Rep Power
    84
    There are Microsoft partners who have built solutions for automating this, but there's nothing that's part of the service. You could write a PowerShell script that will largely automate it, but not fully.

  4. Thanks to jamesbmarshall from:

    themightymrp (23rd May 2013)

  5. #4

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,037
    Thank Post
    160
    Thanked 908 Times in 712 Posts
    Blog Entries
    3
    Rep Power
    270
    The way that I have done this in the past looking at my notes us using the following script that I have created:

    Connect-MSOLService
    $AccountSkuId="Insert SKU Here"
    $UsageLocation="GB"
    $LicenseOptions=New-MsolLicenseOptions -AccountSkuId$AccountSkuId
    $Users=Import-Csvc:\Users.csv
    $Users|ForEach-Object{
    Set-MsolUser -UserPrincipalName$_.UserPrincipalName -UsageLocation$UsageLocation
    Set-MsolUserLicense -UserPrincipalName$_.UserPrincipalName -AddLicenses$AccountSkuId-LicenseOptions$LicenseOptions
    }
    The script basically configures the location of the user, and also assigns the relevant SKU (license) to the user object.

    I hope that helps.

    Regards,
    James.
    Last edited by EduTech; 23rd May 2013 at 03:36 PM.

  6. Thanks to EduTech from:

    themightymrp (23rd May 2013)

  7. #5
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,183
    Thank Post
    206
    Thanked 221 Times in 190 Posts
    Rep Power
    72
    Cheers, I shall take a look at this and see what I can come up with.

    As a slight aside, how do you make a .PS1 powershell script run as an administrator? Its not in the context menu when you right-click and I'm unable to make powershell commands work correctly unless I open the program as Admin.

  8. #6

    EduTech's Avatar
    Join Date
    Aug 2007
    Location
    Reading
    Posts
    5,037
    Thank Post
    160
    Thanked 908 Times in 712 Posts
    Blog Entries
    3
    Rep Power
    270
    Launch your Microsoft Online Services PowerShell Console as Administrator, browse to the Directory of the Ps1 Script and then run it.

    Or, Just launch PowerShell as Administrator and just past the script in to the console :-)

    James.

  9. Thanks to EduTech from:

    themightymrp (23rd May 2013)

  10. #7

    Join Date
    Mar 2011
    Posts
    29
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    7
    Hey all,

    Just wondering if you've seen this script? I've got it working nicely, running every hour to license any users that aren't assigned, and to warn if the license count drops below a certain threshold.

    I'm about to write a post in my blog about getting it working (it's kinda poorly documented).

    Thanks.

    Quote Originally Posted by themightymrp View Post
    Apologies if this is somewhere else, I can't seem to find it (by all means post me a link if its easier!)

    I have Office 365 all working the way I want it: SSO, Address Book Policies etc etc. However, when a new user is added to our Active Directory, they sync to O365 but are not assigned licenses. What is the easiest way to automate this? I can filter between staff and students via Powershell by querying the 'Office' attribute which I have set to 'Student' for the kids (if that helps?)

    Is there anyway to do this that doesn't involve Powershell?

    Cheers

  11. Thanks to Speculator from:

    themightymrp (13th June 2013)

  12. #8
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,183
    Thank Post
    206
    Thanked 221 Times in 190 Posts
    Rep Power
    72
    Looks very promising for what I want to achieve! Thanks for the link, I will modify it slightly to be able to differentiate between my student accounts and staff accounts and assign the license accordingly - but thanks again

  13. #9
    jamesbmarshall's Avatar
    Join Date
    Feb 2010
    Location
    Reading, UK
    Posts
    502
    Thank Post
    26
    Thanked 223 Times in 154 Posts
    Rep Power
    84
    Quote Originally Posted by Speculator View Post
    I've got it working nicely, running every hour to license any users that aren't assigned, and to warn if the license count drops below a certain threshold
    Automating the assignment of licences is a good thing - but I'd schedule the script to run in line with your provisioning methods (i.e. every 3hrs if you're using DirSync). I'd also be careful since I don't think this script accounts for users that are deliberately unlicensed. You could end up in a situation where you're assigning licences to users unintentionally.

    As @themightymrp says, this really needs to be extended to fit into the education scenario, but the basic framework is a good starting point.

    For what it's worth, the official method for automating licence assignment is here:

    How to use PowerShell to Automatically Assign Licenses to your Office365 Users - TechNet Articles - United States (English) - TechNet Wiki

  14. #10
    jbailey's Avatar
    Join Date
    Jan 2011
    Posts
    75
    Thank Post
    21
    Thanked 30 Times in 17 Posts
    Rep Power
    33
    Sorry to resurrect this, but...

    "# script to assign or swap the licenses of a user
    #Copyright Microsoft @ 2012
    #DISCLAIMER
    #The sample scripts are not supported under any Microsoft standard support program or service.


    So are there any plans for MS to add better provisioning to their 365 product and provide a way for auto assignment of licenses via the Office 365 control panel in the future, or to have it integrated in Azure AD Sync maybe?

    thank you

SHARE:
+ Post New Thread

Similar Threads

  1. Office 365 Charges
    By klop in forum General Chat
    Replies: 7
    Last Post: 9th May 2011, 03:54 PM
  2. Microsoft Office 365 Public BETA
    By EduTech in forum General Chat
    Replies: 4
    Last Post: 21st April 2011, 09:40 AM
  3. [Windows Software] MS Office 2010 Terminal Server licensing with current Office 2007 SBE on workstation
    By albertwt in forum Licensing Questions
    Replies: 2
    Last Post: 8th January 2011, 12:20 PM
  4. Replies: 3
    Last Post: 20th October 2010, 09:35 AM
  5. [Windows Software] Office 2010 Professional Plus licensing options
    By Chris_ in forum Licensing Questions
    Replies: 6
    Last Post: 12th October 2010, 05:36 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •