Command line tool for setting Share flags.


See warranty.


Current Version

Version 1.00.01 - February 19, 2005

Modification(s) from previous version

Security Requirements

Requires at least Power User, Server Operator, or Administrator.


C++. Compiled with Borland Builder 6.0

Source Code Availability



Whipped this together to quickly set the new Access Based Enumeration capability in Windows Server 2003 SP1. The tool will do various amounts of updates depending on the OS version. The OS will generally not throw an error when trying to set a feature not available on a specific OS level. View the settings after you make an update to verify they are what you expect.

The reason I wrote this tool was that I was looking at the ActiveDir Org posts and saw some people chatting about Access Based Enumeration and they indicated it was going to take someone to write some C++ code to do this now at least until MS caught up with themselves again. They pointed at a John Howard Blog which pointed at the data structure used and the constant used for ABE so I did some fishing to verify some of the constants specified in that structure and sat down for a couple of hours and this program resulted. Instead of just doing ABE it handles all of the Share flags including the Client Caching settings. It looks considerably better, IMO, than the tool John shows on his blog. Thanks to ActiveDir Org list and John Howard for pointing out how this was handled so I could take the time to write the tool.

Ever since rmtshare was deprecated by MS for who knows why, I have been wanting to put together a share management command line tool, I think this tool will probably morph into that but want to do it right so put out this basic tool first so people can play with ABE who can't code. If you have ideas on what the perfect command line share management tool does, drop me a line and I will add it to the list of design ideas.


You do not have to supply the email address. I would like you to fill that in though so that I have an idea on how popular a tool really is. If I see 1000 downloads with 900 different email addresses I know it is more widespread than one that has 1000 downloads and 200 different email addresses because the same person needed to keep downloading it for some reason.

Email Address: Optional
Sponsored Link:

Version History

As seen in


    Download and type ShrFlgs /?

See current usage screens