Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


November 20, 2006

Auditing Changes to Shared Folders


RSS
View this exclusive article with VIP access -- click here to join |
See More Registry Articles Here | Reprints | Or sign up for our VIP Monthly Pass!
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 log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
The website is down because someone removed the X-Box

What happens when a manager mistakes a server for a games console. ...

Command Prompt Tricks

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

Microsoft Kills OneCare, Will Launch Free Security Solution

Microsoft on Tuesday announced that it would retire its $50-a-year security subscription product, Windows Live OneCare, and replace it with a free solution codenamed "Morro." Unlike OneCare, however, Morro will focus only on core anti-malware features and ...


Security Whitepapers The Impact of Messaging and Web Threats

Why SaaS is the Right Solution for Log Management

Protecting (You and) Your Data with Exchange Server 2007

Related Events 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 Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


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 Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing