Need script can switch Offfice 365 plan E1 to E3 and enable litigation hold from CSV file

Dear all,
Currently, i need a script can switch Office 365 plan E1 to E3 and enbale litigation hold from the list email in CSV file. I don't know why Microsoft is not enable litigation hold for E3 user by default? Please help me.
Many thanks.

You should try like this
$mbxs = Import-csv C:\Temp\Mailbox.csv
foreach($mbx in $mbxs.UPN)
Set-MsolUserLicense -UserPrincipalName $mbx -RemoveLicenses '<E1>' -AddLicenses '<E3>' -Verbose
Set-Mailbox -Identity $mbx -LitigationHoldEnabled $true -WhatIf
Please test with one test account and explore office 365 community as well.
Regards Chen V [MCTS SharePoint 2010]

Similar Messages

  • I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down eliminate

    I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down menu with the gear box symbol to eliminate

    I cannot find this 300GB "Backup" in the Finder, only in the Storage info when I check "About This Mac".
    You are probably using Time Machine to backup your MacBook Pro, right? Then the additional 300 GB could be local Time Machine snapshots.  Time Machine will write the hourly backups to the free space on your hard disk, if the backup drive is temporarily not connected. You do not see these local backups in the Finder, and MacOS will delete them, when you make a regular backup to Time Machine, or when you need the space for other data.
    See Pondini's page for more explanation:   What are Local Snapshots?   http://pondini.org/TM/FAQ.html
    I have restarted my computer, but the information remains the same. How do I reclaim the use of the 300GB? Why is it showing up as "Backups" when it used to indicate "Photos"? Are my photos safe on the external drive?
    You have tested the library on the external drive, and so your photos are save there.  
    The local TimeMachine snapshot probably now contains a backup of the moved library.  Try, if connecting your Time Machine drive will reduce the size of your local Time Machine snapshots.

  • I have a preorder and I can't find the credit card I used to buy it in the first place. Is there any way I can switch the payment to a new card and get my cd?

    I preordered a CD and I can't find the credit card I used to order it so I can't confirm the billing and recieve my CD Is there any way I can switch the payment to a new card and get my cd?

    Welcome to Apple Communities
    PowerPC applications are unsupported in newer versions. You can upgrade Photoshop or you can install Snow Leopard in a partition.
    1. Open Disk Utility (Applications > Utilities) and select your drive
    2. Go to Partitions tab, press + button, create a new partition and press Apply
    3. Insert the Snow Leopard install DVD and reboot pressing C key
    4. Install it in the new partition
    5. If you want to change boot, go to System Preferences > Startup Disk and select 10.7

  • I need to monitor a transducer block parameter and save it to a CSV file.

    How can I monitor a transducer block parameter and save it to a CSV file?  The reason is that I need to do some long-term testing of an FFb device we are developing, and I need to read the primary output parameter of the transducer block (not the scheduled AI block) every second or two and save to a CSV file.
    I have tried to figure out a way to do that with FBUS Configurator, unsuccessfully, and I purchased FBUS Monitor, as that was recommended by an industry expert, but I have been unsuccessful at getting that to work as well.

    Hi Wpinson,
    Neither FBUS Configurator nor Monitor can meet your requirement. However, there are other approaches. NI-FBUS provides APIs for C, LabVIEW, VB and C#. You can use these APIs to read a parameter value of any block and use standard file IO functions to save the date into CSV file. The LabVIEW APIs are highly recommended because they are easy-to-use and LabVIEW also provides APIs for CSV file operations. You can build the application w/ LabVIEW in a short time.
    You can find the examples of the FBUS APIs in the following folders:
    1. C: C:\Program Files\National Instruments\NI-FBUS\MS Visual C\examples
    2. VB: C:\Program Files\National Instruments\NI-FBUS\MS Visual Basic\example
    3. C#: C:\Program Files\National Instruments\NI-FBUS\MS .NET\examples\CsharpExample
    4. LabVIEW: search "fieldbus" in the LabVIEW example finder.

  • Script to to update users attribute based on EmployeeID Value from CSV file

    Hello, 
    i am trying to build script that read the data from CSV file, the only data exist on this file is the EmployeeID.
    so i need to read the EmployeeID and for each employeeID exist in this sheet in need to disable that user and  change the Description to "Disabled based on the HR Request"
    below script is not working for me any help plz 
    $path = "D:\Private\sample-data.csv"
    $LIST=IMPORT-CSV $path
    $UseremployeeID = $USER.employeeID
    FOREACH ($Person in $LIST) {
    $UserID = Get-ADUser -Filter {employeeID -eq ($LIST.Row[1])}
    foreach ($USER in $UserID){
    Set-ADUser -Identity $User -Description "Disabled based on the HR Request" -Enabled $false

    I managed to know the reason
    you should add -properties EmployeeID  to your code
    <snip>
    Hi,
    That's not necessary. The filtering is done serverside, so you don't need to request that it be returned.
    Example:
    Get-ADUser -Filter "Title -eq 'Some Title In Your Company'"
    Title isn't a default property, but the command above works just fine.
    Don't retire TechNet! -
    (Don't give up yet - 12,575+ strong and growing)

  • HT1510 Is there a way to get the IPod Shuffle 3rd generation to go to the beginning of the playlist/music so I can go on the "Play In Order" mode and have it start from the beginning.

    Is there a way to get the IPod Shuffle 3rd generation to go to the beginning of the playlist/music so I can go on the "Play In Order" mode and have it start from the beginning.

    gakansas wrote:
    It has some songs I would like to keep
    There is no legal way to do this-  You would need to be using the same AppleID (account)
    As far as deleting the songs, in a situation like this, you should restore the iPod which will delete the songs as well as allow you to sync your own music.
    For instructions on how to delete/add songs  it's best to check the manual:
    http://support.apple.com/manuals/#ipod
    As far as restoring, you didn't mention what model you are using but just choose your model from here (they have step by step instructions):
    http://www.apple.com/support/ipod/

  • CAN PHOTOSMART 5510 WORK IN BOTH MODES-USB AND WIRELESS TO PRINT FROM I-PAD OR I-PHONE 4S.

    CAN PHOTOSMART 5510 WORK IN BOTH MODES-USB AND WIRELESS TO PRINT FROM I-PAD OR I-PHONE 4S.

    SEPPLES86,
    In order to print from your I-Pad or I-Phone you would need to be connected through wireless. Air Print works when your printer and device ( ipad or iphone) is connected to the same WI-FI network.
    Here is a link to a post with a lot of good information concerning Air Print.
    http://h30434.www3.hp.com/t5/ePrint-Print-Apps-Mobile/AirPrint-how-to-use-Apple-s-AirPrint-solution-...
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • I am batch processing in PS 2014 (watermark and saving as jpeg from ps file). I get the message for some but not all 'this file needs to be saved as a copy with this option'. And then I have to save it manually. Does anyone know why this happens? (It is j

    I am batch processing in PS 2014 (watermark and saving as jpeg from ps file). I get the message for some but not all 'this file needs to be saved as a copy with this option'. And then I have to save it manually. Does anyone know why this happens? (It is just a plain photoshop file, a watermark is added, then save as jpeg - the jpeg is saved to a different folder than the original photoshop file.)  It happens for about 10 of 30/40  files approximately . Thank you, Kathryn

    I believe I have figured it out - I need to flatten the image, even though there are no layers except for layer 0, first.

  • Since updating my iTunes I no longer have any controls.  iTune covers the entire desktop and I cannot add from my files.  Can anyone please advise me.

    Since updating my iTunes I no longer have any controls.  iTune covers the entire desktop and I cannot add from my files.  Prior to updating I had a perfectly good iTunes which would allow me to stories for including on a iPod. 
    Can anyone please advise me.

    From my post on what seems like the same issue (found here: https://discussions.apple.com/message/21087892#21087892)
    Take the following steps:
    1) while connected to wifi, toggle off then back on the Show All Music and iTunes Match options shown in my original post. Important: I did this step before, but wasn't connected to wifi, and my music disappeared. Subsequently, I connected to wifi and turned off and then back on those options and everything came back though it was grayed out and my only option was to download music.
    2) To get streaming over cellular back, go into Settings>General>Cellular and scroll down to the "Use Cellular Data for:" options and make sure the iTunes option is set to 'On'
    The above steps will bring back the streaming capability which seemed to go away when you update to 6.1. It didn't ACTUALLY go away, but something about the update toggled off the iTunes option in step 2 above.
    I did a final test by turning off wifi, opening Music app and selecting a song. It played successfully without downloading! Crossing my fingers, but I think I'm good to go!
    Hope this helps!

  • Hello. I sold a Macbook Pro, and just before i erased my iCloud account. Nonetheless, I still can see it in Find My Phone" page and cannot erase it from there.

    Hello. I sold a Macbook Pro, and just before i erased my iCloud account. Nonetheless, I still can see it in Find My Phone" page and cannot erase it from there.

    Did you unauthorize the machine?
    Maybe some help here:
    http://support.apple.com/kb/index?page=search&src=support_site.home.search_sugge sted.search&locale=en_US&q=unauthorized%20purchases%20on%20my%20accoun
    http://support.apple.com/kb/HT1918
    http://support.apple.com/kb/index?page=search&product=&q=unauthorized%20purchase s%20on%20my%20account&src=support_site.kbase.search.searchresults
    http://support.apple.com/kb/index?page=search&product=&q=unauthorized%20purchase s&src=support_site.kbase.search.searchresults
    http://support.apple.com/kb/PH2613
    http://support.apple.com/kb/index?page=search&product=&q=delete%20icloud%20accou nt&src=support_site.kbase.search.searchresults

  • Script to determine how a DVD player is configured and enable the Stream

    Hi
    Does anyone know how to use scripts to detect the configuration of a DVD Player (I am interested in aspect ratio settings) and then using another script, choose the appropriate subtitle stream to use for that player?
    Cheers
    Barry

    Hi...Thanks I figured it out... the script is as follows if you want to know and is set as the first play...
    1 mov GPRM 7, 512
    2 mov GPRM 6, 3072
    3 Goto 5 if (GPRM 7 = SPRM 14)
    4 Goto 7 if (GPRM 6 = SPRM 14)
    5 Set System Stream St(Subtitle Stream 1)(On)
    6 Jump Intro
    7 Set System Stream St(Subtitle Stream 2)(On)
    7 Jump Intro
    We are making Education DVDs that go with a book... each exercise is a separate video clip which could be used in more than one book, at different stages. We need to apply an exercise number over the video but do not want to do it in FCP as this would mean having many outputs for one file. We are creating a library of exercises so there fore we place a graphic in FCP for the text to sit on. The most efficient way to add the exercise number is in DVDSP using subtitles. But because of the way DVDSP handles subtitles for wide-screen letterboxed video there is a difference to the way a DVD Player displays the subtitle if the DVD Player is set to 16:9 Wide Screen compared to 4:3 letterbox... if we do not do this then if the text is in the correct place for 16:9 widescreen DVD settings it will be in the wrong place for a 4:3 letterboxed DVD Player...
    I hope that makes sense... anyway, thanks for your help. I seem to have solved the issue with your help.
    Much appreciated..
    Barry

  • Need help with query from .csv file

    I am trying to import a csv file with only 1 column in it.
    The column will only contain a 9 digit ID number. I want to read
    the file then use the contents to query a table to get the names
    and other information and display it. Here is what I have so far:
    <cffile action="read" file="#form.FiletoUpload#"
    variable="csvfile">
    <cfloop index="index" list="#csvfile#">
    <cfquery name="massimport" datasource="data1">
    SELECT * FROM IDTable
    WHERE CardNumber = ('#csvfile#')
    </cfquery>
    </cfloop>
    <cfoutput>#Name# #ID# #Site#</cfoutput>
    I get no errors but I am not getting any results. Just a
    blank page. Does anyone know how to query directly from a csv
    import? Thanks.

    You need to convert your file to a list somehow. Not sure if
    this is the most efficient way but, you can use the cfhttp tag to
    produce a query. Then your where clause becomes,
    where cardnumber in (#quotedvaluelist(query.column)#)
    and you won't need a loop.

  • Please can someone help me? Have iphone 4 and just returned home from abroad where the phone worked fine. Now it wont receive wifi. It picks up signal and shows on phone but cant connect to internet. Computers and ipod all working ok

    Hi, please can someone help me?
    Have just returned home from abroad where my iphone 4 worked perfectly.
    Now at home it wont receive wifi. It picks up the signal which shows in phones display but cant connect to the internet. Computers and ipod all working fine so I assume it must be a problem with the phone.
    Have checked that wifi is turned on and tried resetting phone to no avail

    Hello melissa82686,
    From your description, it sounds like you may have been using the SMS feature of Continuity in iOS 8. If this is the case and it has somehow become misconfigured after a recent change, you may find the information and steps outlined in the following articles helpful:
    SMS
    With Continuity, all the SMS and MMS text messages you send and receive on your iPhone also appear on your Mac, iPad, and iPod touch. Even if the person you’re communicating with doesn’t have an iPhone. And regardless of what phone they have, you can reply from whichever device is closest to you, including your iPad or Mac. You can also initiate a  conversation by clicking a phone number in Safari, Contacts, or Calendar.
    To use Continuity for SMS and MMS with your iPhone and your Mac, iPad or iPod touch
    Your iPhone, iPad, and iPod touch need to use iOS 8.1, and your Mac needs to use OS X Yosemite.
    Sign in to iMessage on your iPhone, your other iOS devices, and your Mac using the same Apple ID.
    On your iPhone:
    Go to Settings > Messages > Send & Receive > You Can Be Reached By, and add a check to both your phone number and email address.
    Go to Messages > Text Message Forwarding, and enable the device(s) you would like to forward messages to.
    Your Mac, iPad, or iPod touch will display a code. Enter this code on your iPhone to verify the SMS feature.
    Connect your iPhone, iPad, iPod touch, and Mac using Continuity - Apple Support
    Get help using Continuity with iOS 8 and OS X Yosemite - Apple Support
    Sincerely,
    - Brenden

  • Script to import contacts from CSV file into Address Book

    Hi,
    I am wondering if it would be possible to import contacts from a CSV file into a group in Address Book using applescript, and if so, if anyone is aware of a script that does this or something similar.
    I have a CSV file with three columns 'First Name', 'Last Name' and 'Email Address'.  I would like these to correspond with  'First', 'Last' and (Work) 'Email' in Address Book.
    Ideally the script would also check to see if entries already exist for the people being imported, but this is less crucial.
    Thanks in advance for any assistance,
    Nick

    Hi,
    Test this on a very small csv file (four or five contacts) to see if it works for you. It will not de-duplicate. You don't give the name of the group, so you'll need to replace Name of group in the second line with your group name, enclosed in double quotes.
    --begin script
    set the_people to read (choose file with prompt "Choose your CSV file")
    set the_group to "Name of group"
    set old_tids to AppleScript's text item delimiters
    set AppleScript's text item delimiters to ","
    set par_count to (count paragraphs in the_people)
    repeat with x from 1 to par_count
              set next_par to paragraph x of the_people
              set first_name to text item 1 of next_par
              set last_name to text item 2 of next_par
              set e_mail to text item 3 of next_par
              tell application "Address Book"
                        set nu_person to make new person with properties {first name:first_name, last name:last_name}
      make new email at end of emails of nu_person with properties {label:"Work", value:e_mail}
                        add nu_person to group the_group
      save
              end tell
    end repeat
    set AppleScript's text item delimiters to old_tids
    --end script
    Watch out for bad line breaks in the lines beginning "set nu_person..." and "make new email..."

  • I have an iPhone 5 from verizon, can I buy a sim card in europe and replace the one from verizon?

    My iPhone5 is model A1429.
    I purchased it through Verizon within the last 9 months.
    Can I just buy a new sim card and replace the Verizon one while I am in Europe for 25 days?

    After 10 days in Scandinavia, this is what I have learned:
    1.) getting the mini or nano sim has been impossible _ in Sweden, Norway and Denmark the carriers I worked with have the old sim cards that they suggest that you trim down to nano size.  The one I tried was still too thick to fit in the sim card drawer on my iphone 5.
    2.) Verizon was very cooperative and unlocked my phone before I left the USA.
    3.) The Verizon plan may be competitive with plans that cover multiple countries in Europe.  The pricing is sufficiently confusing that providers are hard to compare, ie. initial plan / sim card purchase amout, voice, data, text send / receive rates, varying monthly or package  amounts of mintes and data allowances.
    4.) Keeping cellular data off, using wi-fi has mostly kept cellular data usage low, with a few exceptions resulting from data use for either google or i maps and a probable butt-call or mistaken program left on without wi-fi.
    5.) I am still going to check out France's rate, but I won't report more if the story stays the same.
    Good luck out there.
    Thank you to all that responded.  Even though the information did not help resolve the problem it gave us traction.

Maybe you are looking for