Add-MailboxPermission for multiple users on multiple mailboxes

I have a need to grant a large number of users full access to an equally large number of mailboxes. I've previously been able to do this easily in the management shell where I have multiple users for one mailbox (or vice-versa; one user for multiple mailboxes)
by using one of the following 2 commands:
get-content c:\xxxx.txt | foreach { Add-MailboxPermission $_ -User user.name -AccessRights FullAccess}
or
get-content c:\xxxx.txt | foreach { Add-MailboxPermission examplemailbox -User $_ -AccessRights FullAccess}
This works fine for when there are only multiple entries on one side of the equation, but using this method, I would need to run the command multiple times to get all of the accesses set up as requested. So I've been looking to see if there is a way of writing
one command that could achieve it all in one go.
What I've been looking at doing is creating a .csv file, filled as such;
name,mail
user.name1,mailbox1
user.name2,mailbox2
And then writing a shell command like the below:
import-csv c:\xxxx.csv | foreach { Add-MailboxPermission $_.mail -User $_.name -AccessRights FullAccess}
Will this achieve the result that I'm aiming for? or is it going to be easier to just go with the more time-consuming method of just having the multiple entries on one side of the equation?

Hi,
I have a test in my environment, you can use the following cmdlet to grant multiple users full access to multiple mailboxes.
Import-csv c:\test1.csv | foreach { Add-MailboxPermission $_.mail -User $_.name -AccessRights FullAccess}
For example, if I want to grant amy02, amy03 full access permission to amy01; grant amy01, amy02 full access permission to amy03, the test1.csv file should be:
Hope this can be helpful to you.
Best regards,
Amy Wang
TechNet Community Support

Similar Messages

  • Can I use one itunes account for multiple users and multiple devices

    Can I use one itunes account for multiple users and multiple devices?

    The iTunes EULA, as I understand it (I'm not an attorney )for Apps is basically that one person can use an App multiple devices, or multiple people can use an App one device..so one to many or many to one, but not many to many....

  • 'BBPSC11' error in Monitor SC for one User having multiple positions but on

    Hello,
    'BBPSC11' error in Monitor SC for one User - having multiple positions in org structure - but having one BP code associated to all positions.
    We have one BP ID associated to multiple positions of the same user - in multiple org structure.
    The org unit is refered as one Project and like wise we have multiple projects people worked on.
    Once the Proj is over we move the Users from one Proj (Org unit) to another Proj, with new Position created copying the old and associate old BP code to it.
    With this when we go for Monitor SC option - enter User ID in Created By field - old SC are listed but we are getting error if we click on the Detail icon.
    Error:The Internet Transaction Server could not start the transaction "BBPSC11" because of the following error: Attribute for user contains errors. Inform systemadmin. .
    AD

    Hi,
    Pl. verify the user with txn-bbp_attr_check. It could be that the org. relationship of the user changed with what was captured on shopping cart. Also use txn-users_gen to repair the user.
    Regards,
    Sanjeev

  • Install Add-ons for All Users

    Salutations!
    I'm looking for a solution to install an add-on for all users. Specifically, we're using the Symantec PKI client (https://knowledge.verisign.com/support/mpki-support/index?page=content&id=SO27063&actp=search&viewlocale=en_US). The current version, as seen in the support page, has to be installed manually. the problem is, every time new user logs into the system with the latest version of the PKI client installed, this webpage will pop up, annoying users. As a workaround to this issue, I'm looking to install the add-on linked in on the support page and have it enabled for all users by default.
    I followed this article's chosen solution, but it does not appear to have installed the add-on: https://support.mozilla.org/en-US/questions/966922
    Any assistance would be appreciated! The version of firefox that I attempted the solution in was version 35.0.1, but most of our systems are running in the ESR channel, version 31.4.0.
    Cheers,
    Moose
    P.S. I've added the troubleshooting information, but my workstation is fairly unique, so I'm not sure if it'll be very applicable to most of the systems in our environment.

    It would seem like that article ''should'' solve the problem, but it doesn't seem to have had any effect. I extracted the contents of the .xpi file into the browsers\extensions folder using the extension ID, yet that doesn't seem to have done anything. I ran firefox after copying the uncompressed files with an administrator account with no luck. Any thoughts?

  • Adobe Connect Pro Add-In for All Users

    We need to install Adobe Connect Pro Add-In for all users in a Citrix environment. However, when installing the add-in there is no prompt to input a location. It directly installs the add-in on a specific user profile. Is there anyway to install this for all users as normal users do not have access to install anything on our environments? Please help as I cannot find any information on this.

    Hi kylemkr
    Please See the below doc : http://www.adobe.com/support/connect/downloads-updates.html
    http://helpx.adobe.com/adobe-connect/kb/connect-90-patches.html
    Hope it helps

  • Multiple users on multiple macs sharing iPhoto Library

    How can different family members (using personal logins) all access the same iPhoto library, regardless of which of our two iMacs they happen to be logged into?
    I thought the solution would be as simple as:
    Plug an external hard drive into the Airport Time Capsule.
    Copy our iPhoto library onto the external hard drive.
    Log in as each user, open iPhoto and point to the iPhoto library on the external hard drive.
    I've searched the support forums and can't find a successful example of this. Does it work? If not, is there another elegant solution?
    I'd also be interested in how to back up the 'networked' iPhoto library. I plan to use iPhoto's "publish to Flickr" capability for this as it also solves how to share photos with our family's many iOS devices.
    Ps. I'm new to the Mac environment so am still learning my way with OSX (be gentle please).
    Equipment
    x2 iMacs (<12 months old) running the latest OSX and iPhoto software versions
    2TB Airport Time Capsule (brand new) with a 1TB USB external hard drive plugged-in (not sure of the formatting).

    How can different family members (using personal logins) all access the same iPhoto library, regardless of which of our two iMacs they happen to be logged into?
    I thought the solution would be as simple as:
    Plug an external hard drive into the Airport Time Capsule.
    Copy our iPhoto library onto the external hard drive.
    Log in as each user, open iPhoto and point to the iPhoto library on the external hard drive.
    This cannot work, unfortunately, for several reasons:
    iPhoto is strictly a single user database. Only one user at a time can open it.
    An iPhoto library needs to be on a locally mounted volume. It cannot be on a network share.
    The file system of the drive needs to be MacOS Extended (Journaled).
    Apple's only recommendation to share an iPhoto library is this:    iPhoto: Sharing libraries among multiple users
    If you want to share photos and not the library, see this:   iCloud: iCloud Photo Sharing FAQ
    Trying to put the iPhoto or Aperture library on a network volume, will result in library corruption or data loss:
    Use locally mounted Mac OS X Extended volumes for your Aperture library

  • Multiple user accounts, multiple Ipods, One computer, One Itunes library

    Here's my problem, I have my main music library on my Mac Mini (Intel 1.5 solo) its too big to fit on the hard drive with everything else, so I added a Mini pal drive. This has my music, photos and all the other junk I cant fit on the mini's hard drive. I want to create multiple accounts so my kids can each have their own, but we all have Ipods that we want connected to our own accounts. I want to keep all the music in one library, and share it accross all the accounts. I dont want to have to log on when my kids want a song from my library. Itunes dosent seam to like the library being on the seperate drive. Mabe I am just dooing something wrong.
    Ps: I'm running Itunes 7.3 on all my machines

    Apple really doesn't quite do multi-user well yet, at least as far as the iPod goes (IMHO.)
    We've taken your approach. 3 users with iTunes for each pointing to a single library on an external storage device. That way there's no problem with having to go to other libraries to import (and not question about 'copying files'... big waste of space.)
    Our problem is having multiple iPods plugged into the same machine. I'm about to buy one of the new models for wife and daughter, but I'm not sure how we all can be plugged in (as I'm sure will happen.)
    Right now, when I plug in just my own Nano, it appears in iTunes for each of the other users. In fact I sometimes can't even eject because iTunes for another user thinks the iPod its attached to it.
    To expand this thread, anyone have pointers on use of multiple iPods on the same machine with multiple users? The existing links to Apple support articles are not relevant.

  • Best way to manage multiple users and multiple devices?

    I would like some advice on the best way to manage iTunes and devices synced to it for multiple users -- Here's the scenario: I have 2 grade-school aged kids, who each have an iPod Nano and are going to get my old iPhone 3G to use as an iTouch after I upgrade my phone to the iPhone 4. In addition to my iPhone, I have a MacBook, a 30GB iPod, and a iMac. We are also looking into buying an iPad that we'll want to use (among other things) to watch movies while traveling. All music/apps/movies are currently located in my iTunes account on the iMac, and we sync via my personal @mac.com account.
    I don't want to simply set up separate iTunes accounts for each kid, as I'd like to be able to control what music & apps they buy/download, and I've already got a fair amount of "their" music/apps/movies in my account, and don't want to have to try and move it from my account to theirs. Any advice on how to best set up an iTunes sharing arrangement that allows me to control their accounts, and sync all of the above devices would be most appreciated. Thanks in advance.

    turingtest2 wrote:
    Wow, I'd forgotten that one...
    as I said in the thread, that post did find it's way into my database
    great stuff, tt2 !

  • Sending Notification to Multiple Users in Multiple Language.

    Hi,
    In our Apps (R12) environment, workflow is installed in multiple languages. I have a requirement where User can choosed their preferred email language and all notification should be sent to that user only in the preferred language.
    Below is the logic that I am using:
    1) Creating adhoc users for the email addresses and passing user preferred language as 'language' parameter. This language is different for different users.
    2) creating adhoc role and attaching all previosuly created adhoc users to this role.
    Here is where problem comes...
    Notification is going only in the language that is specified while creating adhoc role. This is overwriting languages that are being specified while creating adhoc users !! I even tried not to pass any language while creating role but in that case it is taking language for that session...
    Is there any way to achieve this functionality?
    Thanks,
    Sumit

    Hi,
    Are you expanding the role in the definition?
    I would expect that if you are notifying a role, then the language of the role is used, unless you expand the roles - in which case the language for the users which are part of the role would be used.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How do I install an Add-on for all users

    I wish to user the FoxFilter addon to prevent users from visit all websites, except a whitelist. This addon works fine. I just need the addon to work for all users on the computer. Not just the one the addon was installed for. Can this be done and if so, how?

    This is very possible and you can do it in few very steps.
    <br/><br/>1-First you have to download the xpi add-on file instead of installing it.
    <br/><br/>2-Use the following command at the run prompt (type Windows + R): firefox -install-global-extension
    <br/><br/>For example if your downloaded xpi add-on is on C:\Users\Simon\Downloads\
    <br/><br/>Then you write firefox -install-global-extension C:\Users\Simon\Downloads
    <br/><br/>Note : The addon will be normally available where every addon is. Keep in mind that only administrators can uninstall it.
    Have a nice day
    Sincerely,
    Ahmed Nefzaoui

  • How do I install a Thunderbird add-on for all users? Putting the XPI file into Extensions folder didn't work.

    I'm trying to install Enigmail 1.8.2 for all users. I thought I read somewhere that you don't need to unpack the XPI file.
    Whilst writing this, I did some experimenting and found a solution, but it's messy (see below). Is there an easier way?
    Fresh install of Thunderbird 31.6 on Windows 7 x64. Have observed the following:
    1. If I install the extension for one user via the Add-Ons GUI (from the marketplace, not from a local file), it does work. The Appdata\Roaming\Mozilla\Extensions folder is empty. Folder {847b3a00-7ab1-11d4-8f02-006008948af5} is created in Appdata\Roaming\Thunderbird\Profiles\xxxxxxxx.default\extensions\staged\ and moved from staged to extensions when TB is restarted.
    2. If I download the XPI file from Enigmail site and copy it to Program Files(x86)\Mozilla Thunderbird\Extensions folder, then Thunderbird's Extensions screen says "You don't have any add-ons of this type installed".
    3a. If I rename the xpi to zip (e.g. enigmail-1.8.2-tb+sm.xpi.zip) then I can open it and see that the contents are similar to what was created at point (1). If I unzip the contents, then Thunderbird doesn't recognise the add-on, unless I rename the folder to the GUID above (which could be found in install.rdf or chrome.manifest, once you know what you're looking for).
    Presumably I could also have done a per-user install, copied the folder from the profile, removed the extension, then pasted the copy into the program folder. That would save looking up the GUID but is only a little less fiddly.
    3b. After renaming the folder and restarting TB, it gives me a new tab "Install Add-on" which says "Another program on your computer would like to modify Thunderbird with the following add-on: ... Location: C:\Program Files (x86)". Once I allow the add-on, it is listed in Profiles\xxxxxxxx.default\extensions.ini.
    Aside: Disabling the add-on simply removes the line from extensions.ini, so how does TB distinguish between an unapproved add-on and a disabled one? It seems to be in extensions.json.

    Is Thunderbird already installed in the computers? If so, you could download the .xpi file and drag and drop it into the extensions window (after opening that) to install it in all the computers, following which you click the Install buttons when they become enabled, and you might have to restart Tbird afterwards.

  • Powershell 4.0 How to use Add-Printer to add printer for all users (machine)

    Is there a way I can use Powershell 4.0 Add-Printer cmdlet to add a printer for all users (machine)?  I tried from an admin account but it only adds a printer for the currently logged on user.
    thanks.

    Adding a printer for all users requires having access to their profiles (and registry hive for user) to save the mapped printer information. Your best bet is to either use Group Policy Preferences or write a user logon script that ones when they log in and
    maps the printer if not already mapped. 
    Group Policy Preferences Example
    I wrote an article a while back that shows how to use a GPO logon script to map a printer. It doesn't use V4, but the process would be the same as far as a GPO goes.
    http://learn-powershell.net/2012/11/15/use-powershell-logon-script-to-update-printer-mappings/
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

  • Add Applications for New User to Dock

    Hi,
    I'm running a Server through a local account on an Imac controlling 10 Imacs and 12 Emacs for a Music dep. I recently set up some more Emacs running 10.4.11 for a different department. They're all networked fine and I've allowed access to applications for users through Legacy.
    I can't figure out how to add an application or a folder onto the dock for a user where the application exists on the Emac but not on the Imac. The only applications or folders I can access are those available to the local user on the Imac. It's not an option to install the application onto the Imac
    Any help much appreciated,
    Muppetto

    So when the "Art GCSE" Open Directory user logs in, you want the "~/Documents/Art GCSE" folder to show up in the dock? If so...
    Log into the "Art GCSE" user on a client machine that has Workgroup Manager installed on it. When logged in as that user, open WGM (and authenticate to WGM as diradmin, not as that user). Select the user from the users list, go to Preferences > Dock > Dock Items. Select "Always" and choose the items you would like to always appear in the dock for that user. Under the "Documents and Folders" area, choose the "Art GCSE" folder.
    Try this out and post back with any questions!

  • Splitting up a job for 140k+ users across multiple servers

    Hello, 
    I am pretty new to Powershell and want to learn more about scaling stuff and just started working with jobs.
    In this particular case I am just doing mass enable or disable at a per user level.  The other script I need to do this with grabs and checks values on around 6000 distribution groups and using the current values and type it creates new commands
    to add/remove certain users or permissions in bulk with Invoke-Expression.  I *think* it would probably be best in my case to run these across servers as well.
    Basically what I am looking at is:
    Using one large list/array, counting it, splitting it, using the resources it has available with jobs.
    One of the problems I have had with this but seems I have mostly figured out is how I combine or 'foreach' several different values that may need to be applied to separate objects on certain servers with certain users and certain attributes. 
    Last night I ran the first script that could do that but it took me awhile and looks like a wreck I am sure - but it worked!
    Now to tackle size.
    Thank You

    Hi Paul,
    looking good so far. Did a little rewrite of what you posted:
    Function Disable-Stuff
    Param (
    [Parameter(Position = 0, Mandatory = $true)]
    [string]
    $file,
    [Parameter(Position = 1)]
    [ValidateSet('CAS', 'MBX', 'ALL')]
    [string]
    $servertype = "CAS"
    # Collect server lists
    $servers = @()
    switch ($servertype)
    "CAS" { $servers += Get-ClientAccessServer | Select -ExpandProperty name }
    "MBX" { $servers += Get-MailboxServer | select -ExpandProperty name }
    "ALL"
    $servers += Get-ClientAccessServer | Select -ExpandProperty name
    $servers += Get-MailboxServer | select -ExpandProperty name
    # Remove duplicate names (just in case)
    $servers = $servers | Select -Unique
    default { }
    # Calculate set of operations per server
    $boxes = ($servers).count
    $content = Get-Content $file
    $split = [Math]::Round(($content.count / $boxes)) + 1
    # Create index counter
    $int = 0
    # Split up task
    Get-Content $filepath -ReadCount $split | ForEach {
    # Store file content in variable
    $List = $_
    # Select Server who does the doing
    $Server = $servers[$int]
    # Increment Index so the next set of objects uses the next Server
    $int++
    # Do something amazing
    # ... <-- Content goes here
    Disable-Stuff "c:\job\disable.txt" "CAS"
    Notable changes:
    Removed the test variables out of the function and added them as parameters
    Modified the Parameters a bit:
    - $file now is mandatory (the function simply will not run without it)
    - The first parameter will be interpreted as the file path
    - The second parameter will be interpreted as Servertype
    - $Servertype can only be CAS, MBX or ALL. No other values accepted
    - $Servertype will be set to CAS unless another servertype is specified
    you if/ifelse/else construct has been replaced with a switch (I vastly prefer them but they do the same functionally
    I removed the unnecessary temporary storage variables.
    Appended a placeholder scriptblock at the end that shows you how to iterate over each set of items and select a new server each time.
    I hope this helps you in your quest to conquer Powershell :)
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • Separate accounts for existing multiple users on multiple computers

    We have three users on four computers. We each have large libraries. i want to spin off and set up my own account with separate billing and let the other two go their own way (together or also separate). I'm afraid of losing the 4,000 songs I have purchased and copied from CDs or possibly freezing out the other two users if I just change the password. Also, will the changes sync with my iPod and iPhone?

    Setting up new account in the iTunes Store, if that's what you mean, will have no effect on existing tracks nor iPods as long as you don't try to authorize the computer to more than five iTunes Store accounts. If you're using a single Mac OS X user account and iTunes library, you'll each have to log into your own iTunes Store account to purchase and then remember to log out when you're done. It will probably be easier if you have your own user account in Mac OS X so you have a completely separate iTunes library. Then you have have your iTunes logged into your own account. You'll need to copy the tracks you want from the existing iTunes library to your new Mac OS X user account.

Maybe you are looking for