Powershell help - get a recursive list of user created inbox subfolders based on variable

I have a requirement to identify all user mailboxes that have user created subfolders under the Inbox folder.  I can use the following powershell command to obtain the information I need, but only for one user at a time:
Get-mailboxfolderstatistics username -FolderScope Inbox | select name, foldertype | Where-Object {$_.FolderType-eq "User Created"}
I have a list of about 700 usernames which can be loaded into a variable.  I've tried experiementing with the ForEach-Object cmdlet but I can't seem to get it to work.  Is there a way to get my command above to loop through all usernames stored in
a variable, and then export to CSV?

For all users dynamically...
get-mailbox | Get-mailboxfolderstatistics -FolderScope Inbox | Where-Object {$_.FolderType -eq "User Created"} | Select Identity, Name, FolderType | Export-CSV Mailbox-Folder.csv -NoTypeInformation
From a variable...
$mailboxes = get-mailbox . .. . . 
$mailboxes | Get-mailboxfolderstatistics -FolderScope Inbox | Where-Object {$_.FolderType -eq "User Created"} | Select Identity, Name, FolderType | Export-CSV Mailbox-Folder.csv -NoTypeInformation
Blog |
Get Your Exchange Powershell Tip of the Day from here

Similar Messages

  • Big list of users created at the Financial applications

    HI
    During application installation there are quite a big list of users created at the Financial applications. Need to findout what is the impact, can we remote these accounts or lock since these applications are not used
    Regards

    Please refer to these docs.
    Best Practices for Securing the E-Business Suite [ID 189367.1]
    Best Practices For Securing Oracle E-Business Suite Release 12 [ID 403537.1]
    What Is The Impact Of Disabling Oracle Seeded Users? [ID 418767.1]
    Can The Autoinstall Account Be End Dated Or Not? [ID 820065.1]
    Thanks,
    Hussein

  • Lync Powershell help -getting error "Management Object Not found"

    Hi,
    I want to reference a list of users in Lync that do not have a HostedVoicemailPolicy applied. Please can someone help me..
    I have a list of users that form a txt file I am referencing called $lynctest.
    User1
    User2
    User3
    NoSuchUser1
    NoSuchUser2
    I have the following and its not catching the error so that I can output to another file.
    try
    foreach($lyncuser in $lynctest)
        Get-CsUser -Identity $lyncuser | select displayname, hostedvoicemailpolicy
    catch
       write-host "$lyncuser user not found" > "c:\datatemp\listofusers.txt"

    Not super efficient, but quick and dirty.  If you're talking about thousands of users, this might be too slow and we can work something else out.  If you're talking about a handful, this might be fine.
    foreach($lyncuser in $lynctest) {
    $founduser=Get-CSUser|Where-Object {$_.samaccountname -match $lyncuser}
    if ($founduser) {
    "The user exists"
    else {
    "The user does not exist"
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Get Community ID list using user id in 4.5

    Need to get a list of communities a user belongs to by his userid. Anyone done this?
    M

    You have to develop 2 files. First, for example, CommunityProxy.asp. This file has to be placed into the Plumtree directory and works with Plumtree API you need. The code looks like:
    ASP
    ' Put here what you wantResponse.AddHeader "Groups","....."
    Then you develop remote file (as a part of your remote portlet), in my case it was Java class. The point that you can get all information you need from http (the same way as Plumtree did). If you need send to remote ASP file some information (UserId for example put one in URL) In Java it looks like:
    JAVA...
    String strURL = "http://"+portalname+"/portal/common/CommunityProxy.asp?UserId=...";
    URL url = new URL(strURL);HttpURLConnection conn;conn = (HttpURLConnection)url.openConnection();conn.connect();Groups = conn.getHeaderField("Groups");
    Now Groups variable is what I need.

  • Getting Drop Down list for a field in portal based on the values in R/3

    Hi,
    Presently we were customizing the ESS>>Family Members/Dependants iview in Portal. Because of the design requirement, in R/3 we have added some custom field for infotype 21 (Family Member details Infotype). We have to display these field on portal in Family Member Iview.
    However for these custom fields i am not able to get the drop down list with all the possible values description(F4 help ) in portal unlike the standard SAP fields.
    I am able to display the codes but the description is not coming up for the fields. However for standard SAP field, only description comes.
    For this I tried to attach the search help to the data element and also assigned a check table to the data element in R/3. But still I am not getting the description in the drop down.
    So how can I get the description and only the description in the drop down.
    Thanks
    Namit

    Hi,
    When you run the Search hep is it giving the description or not
    You have to create the serarch help with both the fieldname and its description field then we cna the values. Or
    Try to mantain the text table for this field and get the data.
    Get the valeusinto drop drown with this table Or create the SearchHelp for this text table
    Regards
    Lekha

  • SharePoint 2013 access to custom lists a user creates

    In an InfoPath custom list form 2013, I have setup a group of test users with 'view' access to my test SharePoint website. These users are able to enter data in a custom list.
    When the user looks at the data that they originally entered by accessing the data from the sharepoint website, the InfoPath Form looks like the form is read only. However if the user clicks the auto generated edit buttons on the top of the form, they are
    able to change the data in the list.
    Basically I would like a way for the user to not be able to change the original data in the custom list.
    Is there a way that I can accomplish this goal like:
    1. disable the autogenerated buttons,
    2. have all the textboxes set as read only,
    3. change some kind of an access level?
     Would you let me know what method works and how to accomplish my goal?

    In InfoPath Designer go to File, Info, Form Options.
    In the Web Browser category uncheck Show InfoPath Commands in Ribbon or Toolbar.
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • Getting a list of users and permission from a folder

    I run this command to get a a list of users and permission from a folder
    $project_folder = "\\servername\foldername"
    get-acl $project_folder | %{ $_.Access  } | ft -property IdentityReference, AccessControlType, FileSystemRights > folder.csv.
    This only lists information for 1 folder.
    If i have multiple folders how should the code be modified?

    this is the code i am looking for 
     $project_folder
    = "\\servername\foldername\foldername1"
    get-acl $project_folder | %{ $_.Access  } | ft -property IdentityReference, AccessControlType,
    FileSystemRights > folder.csv.
    I  run this code and this gives me the information for only the folder 'foldername1'.
    Ex. i need a list of users who have permmission in \\servername\foldername\foldername2.
    i run the code and it gives me the permissions and list of users in foldername2.
    This is the issue
    IF there are multiple folders \\servername\foldername\foldername2, \\servername\foldername\foldername1,
    i need to run the code each time for 1 folder. 
    is there a command where i can combine the path of these 2 or more folders and export
    it to csv
    Ex.  $project_folder
    = "\\servername\foldername\foldername1",
    "\\servername\foldername\foldername2"
    get-acl $project_folder | %{ $_.Access  } | ft -property IdentityReference, AccessControlType,
    FileSystemRights > folder.csv.
    This will give me the list of users and the type of access they have in foldername1 and
    foldername2

  • How to find out list of users and their access on Sharepoint

    Hello Everyone
    How can i find out list of users and what access they have on SharePoint site? I want to create table with list of the users and their access?
    Thanks

    you can get the report using below powershell scripts. first one gives list of users in a site collection level.
    The second link generates the permissions reports for each user.
    http://techtrainingnotes.blogspot.com/2010/12/sharepoint-powershell-script-to-list.html
    https://sp2010userperm.codeplex.com/
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • How do we get the usernames list from the james server

    hi guys,
    i would like to get the total registered users in James Mail server.is there any way to get the total list of users ?. pls help me...if possible send me sample code.
    thanks & regards,
    siva

    telnet localhost 4555
    -> log in with the credentials you set in the config file
    -> list users
    or, if you have set up the users in a database, you can connect to the DB to manipulate them.
    see http://james.apache.org/FAQ.html

  • Po List by user ID wise

    Can I get the PO list by User ID WISE

    go to Tcode  ME2N.
    click dynamic selection buttion.(shift F4)
    PO header and item fields will appear.
    dropdown PO document header ... double clickt' created by" field....new window will appear on selection screen
    enter User ID .. and execute.
    hope this will solve.. with standard Tcode.

  • List of users

    How can I find the list of users created/deleted during the month ?

    you can use Tcode SUIM or directly with Tcode S_BCE_68001439

  • How to list mail/documents in inbox?

    hello guys,
       I want to find a fm to list all notifications in the "unread documents"/"document" folders within workspace's inbox. Dose any standard fm support this?
       thanks a lot
       Plz help me in this regard

    Thanks, Siddharth Chordia  and all of your people.
    By read the code of fm 'BWNO_INBOX_READ', I find the program process is like below:
    first , call function 'SO_USER_READ_API1', to get the object-id of user's inbox;
    then, call function 'SO_FOLDER_READ', use 'object-id' and 'uname', and export the folder_content.
    Want to list those unread doc, just mark flag in parameter 'FILTER'.
    And to Deepa Kulkarni 
    'SAP_WAPI_GET_WI_ALL' and other 2 fms are work with workitems, but not with notifications; thanks a lot .
    Thanks a lot again.

  • What is a user parameter list in iMovie? I am trying to sent the movie from imovie to idvd and I keep getting an error with the user parameter list. Help?

    What is a user parameter list in iMovie? I am trying to sent the movie from imovie to idvd and I keep getting an error with the user parameter list. Help?

    Can you give more details?   What exactly is the entire error message text?  there should be an error number too.   Are you trying to finalize this to an external disk?

  • Simple powershell to get list then excute each item of list HELP :)

    ok i think this is pretty simple i just don't know the language. if i run
    get-scdwjob -computername MYSERVERNAME
    i get a nice list of all the jobs, i need to run an enable-scdwjob on each one of those jobs.
    i tried figureing out how to do this but nothing is working

    Hi Philipzempel,
    I’m writing to just check in to see if the suggestions were helpful. If you need further help, please feel free to reply this post directly so we will be notified to follow it up.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • How to get the user created at and modified at properties for a site collection using powershell

    Hi guys, I Know how to get the list of users of a site collection by Get-SPUser cmdlet but hte problem is that this cmdlet doesnt give me the user Created at and modifed at properties 
    can any one tell me how to get these values via powershell???? 
    ps: ignore the 2013 screenshot.. i just want a way to get those values .. if you provide me solution in either 2010 or 2013 , i will crack the other..
    plz guys help me ...

    Get the User Information list and then get the user from that list
    $web = Get-SPWeb "siteUrl"
    $userInfoList = $web.SiteUserInfoList
    $userItem = $userInfoList.Items[0]; #0 here is just for demonstration. You take the user you want here or loop through all users.
    $created = $userItem["Created"]
    $modified = $userItem["Modified"]

Maybe you are looking for

  • Alert log monitor help

    Hello, I am very new to shell scripting. Our DB is 10g on AIX. And i wanted to setup something that will monitor my alertlog and send me e-mail out. And i found this online. But have very little knowledge on cronjob. I can set one up. But this script

  • Manage multiple users backups

    Hi, I try to explain my situation and all my troubles with Time Capsules. Here @ work we have around 20 apple computers all running latest OSX 10.8.2 and I use 3 different 2TB Time Capsule to store and balance users backups. During last 3 years some

  • Powl in webdynpro abap

    hi, in My trip and expense on all my expense report tab depends upon status i need to add link othrewise disable the link powl class cl_fitv_powl_feeder class please help regards, kanchan

  • Back button in ALV

    Dear All, i have redefined the functionality of back button in ALV list display calling the FM popup_to_confirm....... but the problem is that the pop up is being generated twice in the program. can this be made to one. regards abhi

  • Controlling the Behavior of Multi SQL source Data Templates for Bursting

    I have a scenario where we are trying to generate a data template from 10 separate data queries. We want the results of this to be bursted out into 700 separate reports (per account). Right now, the report is generating 700 x 10 (7000) queries agains