Jump to content



Photo

How to export list of shares, users and quota

win7 win8

  • Please log in to reply
4 replies to this topic

#1 norseman

norseman

    Linux and Windows Admin

  • Joined: 26-May 03
  • Location: Toronto
  • OS: Windows 8.1 Pro, Enterprise and CentOS 6.7

Posted 25 February 2013 - 19:14

Hello,

I have been searching online but haven't been able to find the precise answer I am looking for.

I have a server setup on a Windows server 2003R2. Initially we weren't sure what we were going to do with it but made it a file server.

There are 100s of groups that access has been delegated to some 4000 users.

Is there a "best way" to create a list of the shares, users and quotas for all of them?

Thanks!

norseman


#2 +BudMan

BudMan

    Neowinian Senior

  • Tech Issues Solved: 92
  • Joined: 04-July 02
  • Location: Schaumburg, IL
  • OS: Win7, Vista, 2k3, 2k8, XP, Linux, FreeBSD, OSX, etc. etc.

Posted 25 February 2013 - 19:35

Are you talking about shares, or what ntfs permissions have been set on folders/files that are shared or under the shares.

#3 OP norseman

norseman

    Linux and Windows Admin

  • Joined: 26-May 03
  • Location: Toronto
  • OS: Windows 8.1 Pro, Enterprise and CentOS 6.7

Posted 25 February 2013 - 19:48

Shares mainly. We will be migrating the folders where the NTFS permissions should carry over just fine.

We used Windows Server 2003 Standard and not the file services version... I think there is a more robust version which has this all documented.

I can export the share list, that is not a problem. Ann all in one that would also include the list of users and quota for each share would make things a lot easier and save me a few weeks time.

#4 OP norseman

norseman

    Linux and Windows Admin

  • Joined: 26-May 03
  • Location: Toronto
  • OS: Windows 8.1 Pro, Enterprise and CentOS 6.7

Posted 25 February 2013 - 20:26

I've done this so far: <c:\>net share > c:\shares.txt

That gives me some of the details, not exactly what I want but what can ya do! :p

#5 +BudMan

BudMan

    Neowinian Senior

  • Tech Issues Solved: 92
  • Joined: 04-July 02
  • Location: Schaumburg, IL
  • OS: Win7, Vista, 2k3, 2k8, XP, Linux, FreeBSD, OSX, etc. etc.

Posted 27 February 2013 - 13:04

In a normal work setup, normally share permissions are just set to everyone and you limit via ntfs permissions. So not sure what a users list on shares is going to get you?

As to quotas - there lots of different ways to set that.. Did you set by user?

Here is a good tool for dumping access permissions, this might help you.
http://technet.micro...ernals/bb897332

And here is a tool that you could use to check what permissions are set on your shares - but like I said normally that is just everyone full control and then lock down with ntfs

http://technet.micro...ernals/bb897442