Hi experts i have users list in csv file and i want to export these users Recoverable items folder above 50GB into csv file., please help me with the syntax. if i use the below syntax i can get for all users, but i want to pull report for selected users which are in the csv file.
To pull users this info from users with a CSV rather than all you just need to modify your first part into a loop. You can leave your syntax how you have it after the initial call if you need to test for the 50gb limit, but if your CSV already does that you may not have too.
Something like the following, where filedata.csv is your file. I am assuming filedata.csv has several fields ill need like MailboxName, etc.
By putting the call for the get mailbox inside a loop, that has the mailbox name, you can grab that one at a time (assuming the CSV has just a list of the users you want), then loop through the command you have that already works.