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
Anti-Virus Vendors Prepare for War with Microsoft ... Again

When Microsoft announced its Windows Live OneCare security and PC health product over five years (as MSN OneCare), Symantec, McAfee, and the other consumer-oriented security vendors reacted with stunning vigor. ...

What You Need to Know About Microsoft's x64 Server Product Plans

What do Longhorn Server, Windows Compute Cluster Server, and Windows Vista have in common? The x64 platform. ...

Command Prompt Tricks

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


Security Whitepapers Sustainable Compliance: How to reconnect compliance, security and business goals

The Impact of Messaging and Web Threats

Why SaaS is the Right Solution for Log Management

Related Events Security Summit

Top 10 Email Security Challenges and Solutions

Securely Extend SharePoint to the Extranet

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

Test Drive IT Solutions and Get Free Music Downloads
Solve your toughest IT problems with these free downloads and receive 5 free music downloads!


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 ITTV
IT Library Technology Resource Directory Connected Home asp.netPRO Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement | Reprints and Licensing