I have a list of usernames and I want to find out their home folder size. The home folder could be on any file server we have.
How can I do this?
I only have a basic script I downloaded
Get-QADUser | select DisplayName,HomeDirectory | Export-Csv c:\scripts\HomeDirectory.csv
So, one way of doing this would be to store all the usernames in a variable. Let's say that you manage to save a list one above the other in a foo.txt file in C:\
Get-Content C:\foo.txt | Get-QADUser | Export-Csv c:\scripts\HomeDirectory.csv
You can filter the information afterwards. I do not recommend using select before exporting to a CSV using QUEST cmdlets.
Let me know if it does not work as expected.