New-MailUser Command for O365

Hi
I'm trying to get the command New-MailUser to work and then in bulk. But I can not get it to work on user at a time yet
My Invocation is as follows
PS C:\powershell> $password = Read-Host "Pass:" -AsSecureString
Pass:: **********
PS C:\powershell> new-mailuser -name "Test Mail" -Password $password -ExternalEmailAddress [email protected] -userPrincipalName [email protected]
Parameter set cannot be resolved using the specified named parameters.
+ CategoryInfo : InvalidArgument: (:) [New-MailUser], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,New-MailUser
PS C:\powershell>
So Three things
 it is returning an error
how do I get this to work with a fixed string ( not securestring ) so I can read from a CSV file?
and how would I get this in the end run to do a bulk create?

Hi KMB,
I assume you need to create bulk mailusers, you can save all the user information at csv file like:
Name Password ExternalEmail upn
test1 passw [email protected] upn1
And refer to this script to start, the cmdlet "ConvertTo-SecureString" can help us to convert plain text to security string.
$data = import-csv d:\userslist.csv
foreach ($i in $data)
  $ss = ConvertTo-SecureString -String $i.Password -AsPlainText -Force
  New-MailUser -name $i.name -Password $ss -ExternalEmailAddress $i.ExternalEmail -UserPrincipalName $i.upn
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Similar Messages

  • Chat - new special command for SPOILERS

    Hello community and experts - I chat a lot with friends on Skype text messanger and we discuss a lot about video games and movies. We think, that it would be very nice yet not very complicated feature if You could implement SPOILER feature ie: /spoiler and everything after this mark could be white-font or smth.
    Would very appreciate, is that even possible to do it?
    Michał

    Would be nice also for source code. I'm programmer and we often discuss fragments of code. Inserting source code ito conversation without spoilers makes it almost unreadable (very hard to separate human words from programming language)
    offtop: this problem could also be solved by kind of highlighted/borderd/etc... block

  • New command for radius-server source-ports

    I am trying to find the new command fro radius-server source-ports 1645-1646 since it appears to be depricated.  We use tacacs so we do not have the radius server specified but we do need to put in the ports.  Can someone please tell me the new command for radius-server source-ports?
    Thanks

    Both of the links that Peter posted are interesting and helpful. I would like to take a slightly different approach in answering your question.
    In every version of IOS there are certain commands that get inserted into running-config when a particular feature is activated. It looks like in your version the radius-server source-ports is one of those commands. I do not think it is anything that you should be concerned about.
    And I do not believe that having the radius-server source-ports command would prevent TACACS from working. I believe that there is likely to be some fault in your configuration. If you would post the aaa parts of the config then maybe we could see what the problem is.
    In my experience configuring aaa some of the common problems include not correctly identifying the TACACS server, not having exactly the same key configured on the Cisco device and the TACACS server, not having connectivity to the TACACS server (can the Cisco device ping the server, and can the server ping the device), or errors in the authentication or authorization prameters specified.
    Post some information and we will see what we can do.
    HTH
    Rick

  • I just got iTunes 11.0. I'm used to being able to return to the beginning of a song by hitting 'enter'. What's the new command for skipping to the head of a song?

    I just got iTunes 11.0. From all the previous versions I'm used to being able to return to the beginning of a song by hitting 'enter'. What's the new command for skipping to the head of a song?

    Mmmmmm. Works OK for me. I've tried every variation I can think of. Play from playlist, play from library, shuffle on, shuffle off, single song repeat on/off, playlist repeat on/off.
    WAIT !!   Now I've found it  !!  It happens when I have the sidebar hidden and play a playlist from the PLAYLIST pane. Hitting Enter then takes me to the FIRST song in the playlist.
    WAIT AGAIN !!! In the time it took to write the above, it changed again and works properly. Well properly is not really true. It works if I stay in the PLAYLIST pane. If I switch to the SONGS, ALBUMS or ARTISTS pane, enter does nothing. BUT, if I switch to the GENRES pane, enter starts the first song there. AND, if I've switched away from the PLAYLIST pane and switch back, enter then starts the first song in the playlist.
    WOW !! That was a crazy ride. I think we can safely say that there is something awry.

  • Does "/Forms/Upload.aspx?RootFolder=" is language independent for New Folder command?

    URL from "New Folder" command of SharePoint ribbon will always have "/Forms/Upload.aspx?RootFolder=" in all sharepoint languages ?
    When "New Folder" from Sharepoint ribbon is hit then  window.location.href contains "/Forms/Upload.aspx?RootFolder=".
    I just wanted to make can we depend on this string to differentiate between New Folder and other commands on sharepoint ribbon.
    Thanks in Advance.
    - Shwetank
    shwetank

    Hi,
    I think that you misunderstand the application page in SharePoint.
    Application pages are stored on the file system of the front-end Web server in the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\LAYOUTS directory and exist for every site in a Web application. This folder is mapped to an
    Internet Information Services (IIS) virtual directory called _layouts.
    Every site and subsite will have access to the application pages by using the _layouts virtual directory. For example,
    http://myserver/_layouts/settings.aspx and
    http://myserver/subsite/_layouts/settings.aspx access the same application page on the front-end Web server unlike site pages, which are an instance for the specified site.
    As you said, when "New Folder" from SharePoint ribbon was hit then  window.location.href contained "/Forms/Upload.aspx?RootFolder=".
    The Upload.aspx is the same application page.
    The URLs are different depending on the different parameters after the “RootFolder” and the “Type”.
    More information:
    SharePoint Page Types:
    http://msdn.microsoft.com/en-us/library/office/aa979592(v=office.14).aspx
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • HT3211 new, how do i turn off the dialog box at bottom left that is giving commands for macbook air?

    new, how do i turn off the dialog box at bottom left that is giving commands for macbook air?

    try "command+F5"

  • How to make New Folder command available as No as the default value for document libraries

    Hi, is there a way to make this option as No as the default value instead of Yes, for all new document libraries? Perhaps with a powershell command for an entire site collection?

    Hi Cartin,
    I would suggest to create a library template of an empty library with this settings as NO. Use this template for creating new libraries.
    For updating existing libraries you can use:
    $Site = Get-SPSite http://Site
    $ListName = "library Name"
    $Site | Get-SPWeb | ForEach-Object {
    $List = $_.Lists[$listName]
    $List.EnableFolderCreation = $false
    $List.Update()
    $Site.Dispose()
    You can modify the above script for you need.

  • Need example vi using AT commands for dialing the modem at the remote end

    Can any one give example vi for dialing up a modem and sending data to remote end

    Hi sindhu6,
    Presuming that you are connected to your modem via a serial connection:
    I did find a forum related to your enquiry: http://forums.ni.com/t5/LabVIEW/AT-commands-in-labview/td-p/1213335
    And I did find an example from ni.com: http://zone.ni.com/devzone/cda/epd/p/id/2577
    Basically, what you need to do is to find out what are the AT commands used for your modem and send the command over using VISA related functions (e.g. VISA Read VI). You can send the command in a sequantial method. You can do this by using the method found in the first link. The best would be that you can create a state machine where by each case/state will consists of commands that you need to run in a sequence (let's say a sequence of AT commands for sending a message via TCP/IP communication).
    You can also use a sequence structure but I would not suggest that since you cannot stop the sequence half way and if your command is very long, this may look pretty messy for your code.
    The main question is:
    What is the version of your LabVIEW?
    What is the modem that you are using and how is your hardware setup is going to be (e.g. how did you communicate with your modem)? 
    Thank you
    Warmest regards,
    Lennard.C
    Learning new things everyday...

  • [O365] [EWSMA 2.0] [C#] [Windows] How do you create a contact folder that resides under the "My Contacts" node in OWA for O365

    In OWA for Office 365 you can create a contact folder that resides under the "My Contacts" node on "Peoples" tab. This folder ends up appearing under the "Contacts" folder in the exchange store. However, if you attempt to create
    a contact folder under "My Contacts" using Outlook it ends up under "Other Contacts" node in OWA for O365. Even if you attempt to position folder at the root of exchange store it still places it under the "Other Contacts" folder.
    The same is also true if you attempt to create a folder using EWS. Is there a way to create a folder using EWS that will appear under the "My Contacts" node in OWA for O365? I've tried the following with no luck:
    ContactsFolder myContactsFolder = new ContactsFolder(EwsService);
    myContactsFolder.DisplayName = "My contacts folder";
    // Set other properties
    myContactsFolder.Save(WellKnownFolderName.Contacts);
    and
    ContactsFolder myContactsFolder = newContactsFolder(EwsService);
    myContactsFolder.DisplayName = "My contacts folder";
    // Set other properties
    myContactsFolder.Save(WellKnownFolderName.MsgFolderRoot);

    Hi Tony,
    Lots of questions, here goes:
    CAN YOU: Yes.  You can create multiple server nodes.  You can add a server node by going into the Visual Administrator and clicking the add node button.  Make sure you have the required space on the physical drive to accomodate the space needed for the new node (hint: check the space of your existing node).
    PERFORMANCE: Yes, maybe.  If you are running on a 32bit OS, yes, this will definitely improve your performance as you are most likely memory constrained at the moment.  If you are running on an x64 or 64bit OS, you will find that performance will improve but only to the extent that you have memory free and that you have available CPU for the new node.  Remember Java processes are CPU hogs at times, especially during startup, and the more of them you have, the more CPU you need.  Also, watch out for garbage collections.  Be sure to tune your instance to with incrementals and fulls in mind.  Another benefit of multiple nodes is the HA you get by default when you add more than 1 node.  Now if 1 node should crash or restart, your portal is still running and accessible on the other node.
    PARAMETERS: Yes and no.  For java startup parameters, you can create a template under the global --> servers to have your parameters be all the same  When you create a node, those parameters will be used.   But, your currently configured child configuration parameters will not be reflected in the new instance since those parameters are taken from the global (parent).  This is what the global is for and you should consider adjusting the global if you want your child nodes to have consistant values.
    Let me know if you have more questions.
    -jwise

  • How do I create a new event entry for a specific calendar?

    In my iMac Calendar app, I have created a few calendars for different functions.    But every time I try to create a new event entry for a specific calendar, the app seems to prefer a different calendar instead by default.   I cannot enter events in other calendars.   Is there a way to do this?   In previous versions, I would highlight the particular calendar I wanted to work with and the entry would go into that calendar.   Thanks!

    You don't.  Moments in Photos are the new Events, i.e. groupings of photos sorted by date taken.
    When the iPhoto Library was first migrated to Photos there was a folder created in the sidebar titled iPhoto Events and all migrated iPhoto Events (which are now Moments) are represented by an album in that folder. To open the sidebar if it's not already open use the Option+Command+S key combination.
    There's a way to simulate events in Photos.
    When new photos are imported into the Photos library go to the Last Import smart album, select all the photos and use the File ➙ New Album menu option or use the key combination Command+N.  Name it as desired.  It will appear just above the iPhoto Events folder where you can drag it into the iPhoto Events folder
    When you click on the iPhoto Events folder you'll get a simulated iPhoto Events window.
    The downside to the simulation is that the Albums/Events can only be sorted automatically by Title. But they can also be sorted manually, either in the sidebar or in the folder's window at the right.
    Ask Apple for more sorting options in Photos via https://www.apple.com/feedback/photos.html.

  • Why doesn't New Tab command work? Or clicking + sign in tab bar?

    I looked at the answer to the + sign not working. But could not understand what exactly was the solution. The File>New Tab command is the same as clicking the + sign. Neither work for me UNLESS I launch Firefox in "safe" mode (Option-click). I don't see why I have to remember Option-click every time I open Firefox.
    I'm on a Mac mini (new in March 2014) with Mac OS X 10.9.4, Mavericks. Is that the problem?
    The answers I've read here use terminology I do not understand. (I made a living writing computer manuals for HP and Apple, so I'm not naive.) Do you have a glossary somewhere?
    I just want to be able to open multiple tabs in one window and click from one to another. I used to be able to do that.

    We have seen reports about a Community Toolbar extension causing this issue with not being able to open a new tab.
    Your System Details list shows:
    * WiseConvert Community Toolbar
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Key Command for Option Clicking a Marker

    Option Clicking a Marker does just what I want. It sets the playhead to the beginning of that marker without selecting the marker. Now if I could make the Keypad behave the same way, I could save myself a lot of damage to my Marker tracks. Right now a keypad # selects the marker, moves the playhead to it and sets the locators around it. preferences to make this more granular would be welcome.
    The option keypad numbers seem to be unused in the default key commands. Perhaps the option key could be set to trigger the same behaviour as option clicking a marker. it makes it intuitive (meaning I tried it.)

    The only way I can think of is to use a Macro app like QuicKeys assigning a KeyStrokes to a sequence of two key commands:
    For example:
    ctr+opt+cmd+1 triggers 1 (go to Marker 1) followed by sh+opt+D (Deselect All)
    ctr+opt+cmd+2 triggers 2 (go to Marker 2) followed by sh+opt+D (Deselect All)
    ctr+opt+cmd+3 triggers 3 (go to Marker 3) followed by sh+opt+D (Deselect All)
    You can assign the QuickKeys commands (ctr+opt+cmd+1, etc) to the keypads and they will move the Playhead to that Marker and selects the Marker. However, QuicKeys sends the second KeyCommand right away and deselects the Marker.
    No deleting of selected Marker by accident anymore.
    The KeyCommands in Logic are already very powerful, but when combined with QuicKeys (or any other Macro app) that lets you fire up a sequence of KeyCommands or mouse click on specific areas on the Logic interface per key commands, then it gets really powerful. Combine that with multi-touch gestures on your TrackPad using the amazing BetterTouchTool app, an you can take your customized workflow to a whole new level.
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • Update Managed Metadata field in SharePoint 2013 Designer Workflow for O365

    Hi Guys,
    I need to update the managed metadata field in SharePoint Custom List using Workflow but its not working. I have also tried to use the HTTP WebService POST Operation but no luck.
    Am doing this for a SharePoint Online (O365) Site.
    Has anyone worked on something similar and was able to get it running ?
    I saw a post to create a custom Workflow Activity but I don't have a choice to go with the custom code option.
    http://patrickboom.wordpress.com/2013/07/23/workflow-activity-set-managed-metadata-column/
    I was able to achieve this by creating a SP 2010 based Workflow for O365. Which means that it worked well with SP 2010.
    Is there a different way to do it in 2013 ? I tried almost all options apart from creating custom Activity but nothing worked out. 
    Any help would be great.
    Thanks,
    Nutan
    Nutan Sharma

    Hi Nutan,
    According to your description, my understanding is that you want to update Managed Metadata field with SharePoint 2013 Designer for SharePoint Online.
    As far as I know, there is not an OOB action to achieve your requirement with SharePoint 2013 Designer for SharePoint 2013. Customizing a workflow action is a better option to achieve it.  Why didn’t you customize a workflow action as Patrick’s blog?
    In addition, please take a look at the article about Nintex workflow, check whether it is useful for you:
    http://habaneroconsulting.com/insights/setting-managed-metadata-fields-in-a-nintex-workflow#.UykBSf6KDHo
    As this issue is about SharePoint Online, I suggest you create a new thread on SharePoint Online forum:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=onlineservicessharepoint . More experts will assist you.
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Command for silent installation of SCVMM Agent or adding Hyper-v Host to SCVMM

    Hello..
    I have to add my Hyper-V host using command to SCVMM without access to SCVMM Console.
    Plz provide me commands for that.

    Hi Richa,
    I tested in my lab to add a domain joined hyper-v host with following command:
    Add-SCVMHost -ComputerName serverlab-01 -VMMServer scvmm2012r2-01 -Credential (Get-SCRunAsAccount -Name "domainadmin" )
    The Runasaccount "domainadmin" is create via command "new-scrunasaccount" (during this command it will prompt to input the username and password in my case I added a domain admin account ):
    $credential = Get-Credential
    New-SCRunAsAccount -Credential $credential -Name "domainadmin"
    Actually (in most cases), you can use "view script" in the GUI or at the end of the wizard , this may help us to know which command was used :
    Best Regards,
    Elton Ji
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • Best command for script backup?

    hello,
    i always use robocopy for file backup , but with powershell and the new technologies is still the easiest and best choice?

    Your initial question was "Best command for script backup?". For this you received an answer. If you now need support on the subject of your script then you should start a new thread. Note also that you must test your robocopy command from a
    command line before trying to embed it in a PowerShell script.

Maybe you are looking for