Home > Ask the Enterprise Desktop Experts > Questions & Answers > How do I set audit permissions to a folder by command prompt in NT 4.0?
Ask The Enterprise Desktop Expert: Questions & Answers
EMAIL THIS

How do I set audit permissions to a folder by command prompt in NT 4.0?

Roberta Bragg EXPERT RESPONSE FROM: Roberta Bragg

Pose a Question
Other Enterprise Desktop Categories
Meet all Enterprise Desktop Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 24 March 2003
How do I set audit permissions to a folder by command prompt in Windows NT 4.0? The objective is to apply automated audit settings to a specific folder using batch files.

>
The Windows NT 4.0 Resource Kit provides a CACLs utility which can be used to set file permissions, but does not provide one for setting audit parameters or system access control lists (SACLs).

The easy answer here is to purchase a tool. A set of command line tools (including "audit," which does what you want) are available from Pedestal Software. I have not used these tools, so can not vouch for how well they will work in your circumstances.

The long answer to your questions is that you may need to do a little more than use a batch file -- you may need to develop your own utility. The following Microsoft documents discuss programmatically setting SACLs (audit settings) for files and folders. For Windows NT, Auditing, or the other side of security provides C++ code examples.

Some documentation on the "SetFileSecurity" method (works in Windows NT and above) is available here.

Should you be thinking of moving to Windows 2000, see ADSI article Setting access rights on an object. If you're looking to move to XP or Windows Server 2003, look for information on the IADsSecurityUtility interface for XP.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Desktop Solutions - Windows for Enterprise
HomeTopicsITKnowledge ExchangeTipsMultimediaWhite PapersBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2008 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts