Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


November 20, 2006

Auditing Changes to Shared Folders

RSS
Subscribe to Windows IT Pro | See More Registry Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
Main Article    Access Denied

Is there a way to use the Windows Security log to audit changes made to shared folders? I can't find any event IDs that notify you when an administrator creates or deletes a shared folder.

You're right; there isn't a specific event ID that notifies you when an administrator creates or deletes a folder, but I worked with Microsoft to come up with a workaround. Because shared-folder definitions are stored in the registry, you can enable auditing on the appropriate registry subkey and then use the Security log's Object Access category to monitor for changes to the shared folder.

Use the Microsoft Management Console-(MMC) Local Security Policy snap-in to enable Audit object access for Success; you'll find the audit policy in Security Settings\Local Policies\Audit Policy. Then, run

gpupdate /force 

to force Group Policy to refresh. Next, open Registry Editor (regedit.exe) and go to HKEY_LOCAL_MACHINE\ System\CurrentControlSet\Services\ LanmanServer\Shares. Right-click Shares and select Permissions. Click Advanced, select the Auditing tab, and add an entry that audits Everyone for successful use of Set Value, Create Subkey, Delete, and Write DAC permissions, as Figure 1 shows.

Windows will begin writing sequences of event IDs 560 (Object Open), 567 (Object Access Attempt), and 562 (Handle Closed) to the Security log when someone modifies the Shares subkey in the registry. You'll be notified when someone modifies the shared folders on the system. The only event you need to look for is event ID 560 where Object Name is \REGISTRY\MACHINE\SYSTEM\ControlSet001\Services\lamanserver\Shares.

Unfortunately, this approach might not provide event information that's as detailed as you'd like. For example, Figure 2 shows the event recorded by Windows when I designated C:\junk as a shared folder. As you can see, Windows tells me that the Create Subkey and Set Value permissions were requested for the Shares subkey but gives me no information to help identify the folder. However, seeing such an event will alert you that something related to the shared folders on the system was changed, and you can dig down from there.

End of Article



Reader Comments

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...

WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...


Security Whitepapers Reducing the Costs and Risks of Branch Office Data Protection

Solving Desktop Management Challenges in Healthcare

Solving Desktop Management Challenges in Education

Related Events Introduction to Identity Lifecycle Manager "2"

PCI Requirements for Windows and Active Directory: Straight from a Certified Auditor

SQL Server Security: How to Secure, Monitor & Audit Your Databases

Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement