Home folder size

rated by 0 users
This post has 1 Reply | 1 Follower

Not Ranked
Posts 1
morite Posted: 05-14-2012 3:49 AM

Hi All,

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

TIA

Andy

Top 75 Contributor
Posts 34

Hi

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.

Cheers.

Page 1 of 1 (2 items) | RSS
Copyright 2012 PowerShell.com. All rights reserved.