No announcement yet.

List user's files

  • Filter
  • Time
  • Show
Clear All
new posts

  • List user's files

    I have a Windows Server 2003 with quotas working just fine.
    Is there any way to have a list of a certain user's files?
    I work at a University, and this is a file server, with a folder for each subject. Each teacher has a quota for his subjects.
    The problem I'm having is that when the quota limits them, they ask me where their files are... and I don't know where to find them... I am looking for their files "by hand".

    Any ideas?

  • #2
    Re: List user's files

    correct me if im wrong (mods) but isnt that what 'fsutil' is for?

    it only works with 2003 SP1 and R2 releases, and disk quotas must be enabled, but you should meet the criteria as per your post above...

    it should look something like:
    c:/> fsutil file findbysid username path


    fsutil file [createnew] PathName length

    fsutil file [findbysid] User PathName

    fsutil file [queryallocranges] offset=offset length=length PathName

    fsutil file [setshortname] PathName shortname

    fsutil file [setvaliddata] PathName datalength

    fsutil file [setzerodata] offset=offset length=length PathName
    its easier to beg forgiveness than ask permission.
    Give karma where karma is due...


    • #3
      Re: List user's files

      Would this help?
      dir /q /a-d | sort /+39
      Sorts files by user, so gives you a list, which you can output to a file using
      dir /q /a-d | sort /+39 > mylist.txt
      And for subfolders, experiment with using the /s switch for the dir command too.

      The +39 part is the number of characters to use for the comparison when sorting.
      Best wishes,
      MCP:Server 2003; MCITP:Server 2008; MCTS: SBS2008