none
Office 365 Auto Licenses Script RRS feed

Answers

All replies

  • Hi,

    Do you have a specific question or are you hoping someone will just write this for you?

    Thursday, May 2, 2013 1:24 PM
  • so I need the original Script to assign the default Plan (MyDomain:EXCHANGESTANDARD_STUDENT) as it doing already and if the user has the customattribute7 then add this license MyDomain:STANDARDWOFFPACK_FACULTY to the default user license . and if the user has customattribute8 then add MyDomain:STANDARDWOFFPACK_STUDENT to the default user license

    this is my question dear :)


    • Edited by Taheito Thursday, May 2, 2013 1:39 PM
    Thursday, May 2, 2013 1:38 PM
  • To me, at least, your question is NOT clear. You seem to want someone to write a script for you, but I'm not sure.

    WHere did you get this original script from in the first place>


    Thomas Lee <DoctorDNS@Gmail.Com>

    Thursday, May 2, 2013 1:43 PM
    Moderator
  • I think you are looking for an IF statement.

    if($_.CustomAttribute9){
        $licsku='MyDomain:STANDARDWOFFPACK_STUDENT '
    }

    Like that?


    ¯\_(ツ)_/¯

    Thursday, May 2, 2013 2:18 PM
  • you are totally right :) 

    i am looking for If Statement :)

    if CustomAttribute9 -eq S  $licsku='MyDomain:STANDARDWOFFPACK_STUDENT '

    and if CustomAttribute9 -eq T $licsku=' MyDomain:STANDARDWOFFPACK_FACULTY'


    how to write the whole script including the above 2 statements and this is what i am looking for.



    • Edited by Taheito Thursday, May 2, 2013 6:57 PM
    Thursday, May 2, 2013 6:26 PM
  • you are totally right :) 

    i am looking for If Statement :)

    if CustomAttribute9 -eq S  $licsku='MyDomain:STANDARDWOFFPACK_STUDENT '

    and if CustomAttribute9 -eq T $licsku=' MyDomain:STANDARDWOFFPACK_FACULTY'


    how to write the whole script including the above 2 statements and this is what i am looking for.




    http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/a0def745-4831-4de0-a040-63b63e7be7ae
    • Marked as answer by Taheito Friday, May 3, 2013 8:00 AM
    Friday, May 3, 2013 2:48 AM
  • Hi - sorry I had other things to do.

    Here is the documentation on the 'if' statement.

    Type the following: help about_if


    ¯\_(ツ)_/¯

    Friday, May 3, 2013 3:15 AM
  • :) :) 

    Friday, May 3, 2013 7:59 AM