andygates: (Default)
[personal profile] andygates
I have 2,500 user shares on an NTFS server, shared in the traditional hidden way with dollar-suffixes (\\myserver\agates$, etc). I need to list out the size of those shares so that some of my roving gonks can target the zero-size users. I could do it one-by-one, but I'd go mad, get RSI and cry. Anyone know of a script or (free) tool to do the job? Hyaena won't, alas...

Date: 2006-06-13 04:29 pm (UTC)
From: [identity profile] gedhrel.livejournal.com
Think Ruth's got some scripts to do something like this. Otherwise, and assuming that your user shares live in predictable places on the server's drives, you might install cygwin and use the unix utilities (if that's a goer, reply and I'll tell you how).

The problem is that shares inherit and report the capacity of their parent filesystems, I think, so if your user shares all live under f:\users\agates and so on, you need to recursively descend into them to get a size report. If you're just looking for empty directories it's a bit simpler.

Date: 2006-06-13 05:05 pm (UTC)
ext_55120: Wash Wacky Fun (Default)
From: [identity profile] esran.livejournal.com
There's at least one version of the GNU utils (including du which is what you'd use for this) compiled for Win32 without the need for cygwin. I think there's even a GNU one:

http://gnuwin32.sourceforge.net/

Date: 2006-06-13 05:29 pm (UTC)
From: [identity profile] gedhrel.livejournal.com
Yup, and microsoft's own services for unix also include the tools.

Profile

andygates: (Default)
andygates

April 2017

S M T W T F S
      1
2345678
9 101112131415
16171819202122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 21st, 2026 04:03 pm
Powered by Dreamwidth Studios