PS: Need a Switch to Include OUs in Get-Mailbox String

Hello--
I'm using this string in Exchange 2010 (Powershell) to export our mailbox details.
The command string works great and is exactly what I need, except, I want to include the OU that the mailbox is in in the outputted file.
Here is the string I'm using. Can you tell me what the switch would be to include each mailbox OU and where in the below string I would list it?
Get-MailboxStatistics -Database "MBDB" | Select DisplayName, TotalItemSize | Sort-Object TotalItemSize -Descending | Export-CSV C:\MBDB.csv
I tried a couple switches I got online, and they just keep throwing errors.
Many thanks!
Stephen
Stephen Davis Systems Administrator Specialist

Hi Bot,
Thank you for your question.
We could run the following command to export OU mailboxes:
Get-Mailbox -OrganizationalUnit <OU name> -Resultsize Unlimited |Get-MailboxStatistics -Database "MBDB" | Select DisplayName, TotalItemSize | Sort-Object TotalItemSize -Descending | Export-CSV C:\MBDB.csv
If there are any errors when we run this command, I suggest we post error to
[email protected] for our troubleshooting.
If there are any questions regarding this issue, please be free to let me know. 
Best Regard,
Jim
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Jim Xu
TechNet Community Support
Hey Jim--
The switch doesn't work. I tried to list the OU with different formats and it keeps throwing an error that it can't find the OU. Since this isn't really what I was looking for, don't worry about it. I'm trying to find an output that will include the mailbox
user's name, its size, AND the OU, I can't use this anyway.
If anyone knows of a code string that will produce these three outputs, I would appreciate it.
Thanks,
Stephen
Stephen Davis Systems Administrator Specialist

Similar Messages

  • SP2010 I need to set the include in search option switch on all document libraries to off across all site collections on the whole farm?

    SP2010 I need to set the include in search option switch on all document libraries to off across all site collections on the whole farm?
    Has anybody seen If this can be done programmatically any help would be gratefully welcomed thanks.

    i am not sure about the script, why not create crawl rule which will exclude the allitems.aspx from showing in the search results.
    Go to search service application, crawling section, click crawl rules to create a crawl rule to excludehttp://*allitems.aspx page.
    also check this:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/f431dd0e-871b-4f9e-990e-8f3b7ca932a4/crawl-rule-exclusion-sharepoint-2013
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Help need to switch Muse site to BC on a allready hosted plan

    Hi,  i also posted on BC forum...
    I have a client that was in a hurry to have his emails accounts before the entire website.
    So i went on and bought the email marketing plan (cos he will also need to do email campains) an pointed his domain everything is working fine, at this moment he has his accounts the domain is live.
    The site would be just a small 7-10 pages not to complicated.
    Has a graphic designer (who has venture into Business catalyst cos it had all the solutions i needed, well that's what the promotional videos said anyway) I made a site in Muse.
    First i did a temporary page thats says "comming soon", and then i made the entire site, all the design and menu but with blank pages cos the client didnt have all the content yet (and still dont have). I uploaded that site to a sub directory so he could see the evolution.
    He approved the design, yay!
    At the end of the process, he told me he needed to have full control with the editor. (style, images, bulleted list, need to put downloadable document like pdf etc.) i told him that he could only modify what was allready there with the Muse in Browser editing (that he saw when i made the pitch using another site) he was impress with the way it worked.
    so i told him i would have to remake "template".
    I thought of using a BC template, and modify the looks to adapt to my client image, Of course, use a responsive theme so he could make the change at one place only. (cos in Muse you need to make the changes on the 3 layouts).
    Now, i created a new temporary site using one of the new responsive template available.
    How can i import that new site onto his live domain? In other words, how can a switch from a theme made in Muse, to a BC template?
    cant i just delete everything in the root folder, and upload the entire new site via ftp?
    please help me find the solution. i am a bit in a panic here
    hope you could understand my lousy English.
    Sincerely,
    i.d.

    This would need to be transparent for m'y client...
    Y
    Envoyé de mon iPhone
    Le 2014-04-20 à 15:29, Sanjit_Das <[email protected]> a écrit :
    Re: help need to switch Muse site to BC on a allready hosted plan
    created by Sanjit_Das in Help with using Adobe Muse CC - View the full discussion
    Thanks for additional details.
    Unfortunately we cannot change site template of a live site in BC , but as a workaround Create a site from BC using the template you wish to use then publish the site from Muse to the site created from BC and transfer the contents stored from live site to trial site. Ater final transition is done , you can delete the already paid site and make live the new trial site which includes new site template.
    Thanks,
    Sanjit
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6314730#6314730
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6314730#6314730
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6314730#6314730. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • I need help switching back to iPhoto

    In February of this year I switched from iPhoto to Aperture for very specific reasons. My laptop's hard drive was running out of space, as it was housing my photo library that was quickly approaching 25,000 photos and pushing about 30 Gigabytes, and I wanted to take advantage of Aperture's ability to store photo masters on an external drive.
    So why switch back? When I described why I had switched and my experiences doing so back in February I had said that I ran into many problems all of which I was able to solve save two:
    "The two things I have yet to solve, which are rather large things: 1) Spotlight can no longer find my photos since switching to [edit: from] iPhoto. I am really not sure where to start with fixing this so I think I’m just going to have to ask someone. 2) Reorganizing my keywords in Aperture (since I had them set up in iPhoto) is impossible. When I bring up the Keywords HUD, I’m greeted with all of my keywords residing subordinately to a master keyword of 'iPhoto'. When I try to access the keywords that are “below” iPhoto Aperture freezes. Perhaps I have too many keywords (I do have an awful lot). I’m not sure how to solve this one yet either. Maybe there is a raw .plist file that I can manually edit (and I am willing to do so)." -- Me.
    After using Aperture for the past 3+ months I've yet to resolve either of these issues. Recently there was an update to Aperture from Apple that, according to the documentation for the update, was supposed to help resolve my second issue with having too many keywords for Aperture to handle - but it hasn't helped much. So since switching to Aperture I've not tagged more than maybe fifty photos, which is discouraging because I know that once I switch back to iPhoto I'm going to be busy tagging photos again.
    So I suppose you could say I'm switching back for two main reasons. First, I want it to be much easier to tag my photos since that is probably the single most important thing to me and the experience with iPhoto and Keyword Manager ( http://www.bullstorm.se/KeywordManager.php ) is far superior to that of using keywords in Aperture. Second, I want my photos to start showing up in Spotlight searches again. I'm more than willing to deal with the caveat, albeit a rather large one, that I won't have my photos with me wherever I go anywhere but that they'll forever reside on my firewire drive.
    What I need help with...
    When I open iPhoto I see all of the previews for the photos that I had the day I switched to Aperture. However, the originals have been moved by Aperture onto my firewire drive - so when I click on each photo all I get is a ( ! ) symbol. The previews still reference a file that does not exist yet the iPhoto database still retains all of the relevant metadata (date/time, keywords, comments, etc) that I had worked so hard to put into iPhoto. I need to retain this information and somehow get the originals back into place so that iPhoto sees them again.
    What I thought about doing was this: 1) Somehow restore the originals for the almost 25,000 photos into the place where iPhoto thinks they should be. 2) Move the entire library to my external firewire drive. 3) Import the remaining images that I've taken since switching to Aperture into iPhoto.
    Since I have Aperture store my photos by date - importing only the images that I've imported into Aperture should be a piece of cake. I do not need to retain any metadata from Aperture since I've only tagged a few photos in Aperture and all of the other information I may need should be on the original file (like date taken, etc.). I know I'm going to lose a lot of edits that I've done like cropping, rotating, color balancing, red-eye reduction, etc. but I'm more than willing to lose all of that if it means that I can pick up where I left off and get back into the swing of things in iPhoto.
    I've Googled like crazy and haven't found someone doing exactly what I'm trying to accomplish so any help with my current situation is greatly appreciated. I've also posted this on my blog http://cdevroe.com/notes/back-to-iphoto/

    cvdevroe
    2) Reorganizing my keywords in Aperture (since I had them set up in iPhoto) is impossible. When I bring up the Keywords HUD, I’m greeted with all of my keywords residing subordinately to a master keyword of 'iPhoto'.
    Bear with me, my terminology may not be right. I'm heading in the opposite direction, and one of the advantages i see to Aperture is that I've got the same advantages in Keyword management as I have with KM in iPhoto.
    Have you tried re-organising them using the control bar: Below the thumbs there's a drop down menu, by default it shows Photo Descriptors. Click on it and Select 'Edit Buttons'. You can merrily re-organise your Keywords in this window, and even have your changes reflected in live in the HUD.
    As to the Spotlight searching, I'm afraid someone else will need to help on that one. Personally - and it's a regular on the iPhoto forums - I've never had much luck getting Spotlight to search within iPhoto for keywords, apart, of course, from using the search window in the iPhoto Window. I suspect a system-based search of iPhoto keywords is simply not possible.
    What I thought about doing was this: 1) Somehow restore the originals for the almost 25,000 photos into the place where iPhoto thinks they should be.
    That will work, but they'll need to be exactly as they were.
    2) Move the entire library to my external firewire drive.
    Easily done, after you've copied it over launch iPhoto holding down the option (or alt) key and choose 'Locate'. Navigate to the new location and that''ll be your default iPhoto Library Folder thereafter.
    3) Import the remaining images that I've taken since switching to Aperture into iPhoto.
    That should work too.
    But the key is, can you return the iPhoto Library Folder exactly as it was, otherwise you'll need to create and populate a new library - and that will inevitable mean losing your keywords in iPhoto too.
    FWIW, I need to keep iPhoto going for others in the household who are daunted by Aperture. My solution is a referenced library pointing towards the iPhoto Library Folder / Originals folder.
    Regards
    TD

  • How do I change the network settings on my Apple TV? We have two wireless options and need to switch.

    How do I change the network settings on my Apple TV? We have two wireless options and need to switch.

    Welcome to the Apple Community.
    Settings > General > Network > WiFi and select your network.

  • I just purchased the IPad 2, with 3 G, do I  need to switch to a wireless router?

    I just purchased an IPad2, do I need to switch to a wireless router on my PC?

    http://www.apple.com/support/ipad/wifi/

  • IPhone calendar appointments set to local calendar, and need to switch to exchange calendar. Have to edit each appointment one at a time and change to exchange calendar. Is there any method to edit all appoints in my calendar at once?

    iPhone calendar appointments set to local calendar, and need
    to switch to exchange calendar. Have to edit each appointment one at a time and
    change to exchange calendar. Is there any method to edit all appoints in my
    calendar at once and change the calendar setting?

    Not sure this will work but if you go into the Keyboard preferences, then click the Keyboad Shortcuts tab, and then the '+', you can add your own shortcuts for any application.  I am not sure what happens if you try to override an existing shortcut since I haven't tried using this.
    Edit/Update:
    Probably against my better judgement I'll also throw this out there - there's an Unsanity haxie called Menumaster which might also allow you to do what you want.  Against my better judgement because personally I stay clear of haxies.  It's (all haxies) probably almost certain to break in Lion.  They always do with each major release.

  • HT1386 When I go to do an update for my apps on my iPhone 4S it says that I am connected to the Chinese iTunes Store and tha I need to switch to the US store. How do you do that?

    When I go to do an update for my apps on my iPhone 4S it says that I am connected to the Chinese iTunes Store and tha I need to switch to the US store. How do you do that?

    Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region...change here.

  • The App Store said I needed to switch countries so I clicked the button and it switched it for me but now I can't update my apps but when I try to change it through settings it still says the country is the u.s. I don't know what to do to change it back

    The App Store said I needed to switch countries so I clicked the button and it switched it for me but now I can't update my apps but when I try to change it through settings it still says the country is the u.s. I don't know what to do to change it back

    See  >  Change your iTunes Store country
    Here  >  http://support.apple.com/kb/HT1311
    If necessary Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • I recently traveled in Egypt with my iPad. Iam back in the US, but I wanted to download an app, and I get a message that I cannot download from the Australian store, and I need to switch back to the USA how do I do this?

    I recently visited Egypt with my iPad.  I am now back in the USA. I tried to download a new app, and I got a message that I could not download from the Australian store. I was told I need to switch back to the USA store. I did not deliberately switch to the Australian store. Why doesn't the iPad automatically switch back to the USA.

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3. Tap on your Apple ID
    4.Tap "View Apple ID"
    5. Enter your user name and password.
    6. Tap "Country/Region."
    7. Tap "Change Country/Region"
    8. Select the country/region where you are located.
    9. Tap "Done".
    Note: If the change doesn't take effect, sign out of account and sign in again.

  • Need to switch off and on my apple tv v2 each time I want to connect my PC under vista

    Hello
    need to switch off and on my apple tv v2 each timeI I want to connect my PC under vista.
    After that, everything is going well...
    But it is not the best user experience ;-)
    Any idea if this can be fixed ?
    My PC is under Vista...
    Thanks a lot

    I'm having the same problem.  It seems to have started after the most recent firmware upgrade.  Does anybody know if Apple is looking into this?  It's rather irritating to have to reboot the Apple Tv every time I want to use it!

  • HT5219 Which keys to I need to switch my macbook air display to an external thunderbolt display connected via mini port?

    Which keys to I need to switch my macbook air display to an external thunderbolt display connected via mini port?

    Which keys to I need to switch my macbook air display to an external thunderbolt display connected via mini port?
    If you just bought the external Thunderbolt Display, you may be able to return it for the LED Display.

  • I need to switch to a different computer to synch my iphone.  Will I lose information?

    I need to switch to a different computer to synch my iphone.  Will I lose information?

    To gdgmacguy:
    You can authorize the computer! Top left corner, you wil see file, edit etc. Click sotre> authorize this computer, than go to edit> prefrences> devices, under back-ups click where it says to prevent auto sync when devices is connected. than you can connect the device, and theoreticall you could transfer purchases by right clicking on the name of the phone, and back up by the same method.

  • I need to switch back to a U.S. store, but no instruction on how to do so. So how do you change back to a U.S. App Store?

    I have found myself switched out of U.S. App Store. I am told to update my apps but I need to switch back to the US store. But mot told how to do so. Please help me somebody........

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3.Tap "View Apple ID"
    4. Enter your user name and password.
    5. Tap "Country/Region."
    6. Tap "Change Country/Region"
    7. Select the region where you will be located.
    8. Tap "Done".

  • I need to switch my iPod touch, 4S generation, computers. I use Dell, I origanally had it synched on a d=Dell laptop, but am not allowed to do so on that anymore. I am on a Dell PC, and want to change it over to this computer. How do I do that?

         I need to switch my iPod touch, 4S generation, to another computer. I use Dell, I origanally had it synched on a Dell laptop, but am not allowed to do so on that anymore. I am on a Dell PC, and want to change it over to this computer. How do I do that? 

    Plug it in and sync it.
    It will erase the ipod content and replace with the content from the new computer so make sure that you have copied everything form the old computer, or your backup copy of the old computer, to your new one first.

Maybe you are looking for