Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Wednesday, February 22, 2017

Audit File System in Server 2012 R2 and Event 4656

When I recently enabled file system auditing on a Windows Server 2012 R2 I was overwhelmed by the volume of events generated.  I'm talking >4 GB/day in some instances!  When I manually inspected the security event logs it appears to me that the majority of the events generated were event id 4656.  According to all of the documentation I can find this event should only be logged if the Audit Handle Manipulation subcategory of Object Access auditing is enabled.  In my case I hadn't enabled it!  Even the official MS documentation doesn't mention that event.

When searching for info I came across this comment at the bottom of a serverfault post:
Currently, under Server 2012 R2 events 4656 will generate even if Handle Manipulation category is disabled. In our case, we have enabled Audit File System category which was only generating 4660-4663 events on previous Server versions (2008-2008R2-2012) but on Server 2012 R2 this initiates overwhelming flow of 4656 events. The issue has been reported to Microsoft however there is no resolution yet.
I've yet to come across any official discussion of this, but  this certainly corresponds with my experience.  This thread was from June 2016, with a followup comment in January 2017.  Is this an undocumented feature?  A bug?

Luckily for me I'm using Splunk to ingest these logs so I was simply able to add:
blacklist1=EventCode="4656"
in the [WinEventLog://Security] stanza of C:\Program Files\SplunkUniversalForwarder\etc\apps\Splunk_TA_windows\local\inputs.conf in order to filter it out.  YMMV!

Tuesday, January 5, 2016

Count all computer accounts in Active Directory

I needed to quickly get a count of how many computer objects:

Import-Module ActiveDirectory
Get-Adcomputer -Filter * | Measure-Object


gave me the info I was looking for!

Wednesday, March 21, 2012

General Failure. The parameter is incorrect.

Today, out of the blue, a user informed me that he could no longer follow hyperlinks from within Outlook 2007. The error he would receive simply stated "General failure. The URL was: "http://www.test.com/" The parameter is incorrect". I found a lot of references to this being an issue with the default web browser and I attempted to reset this default in every way under the sun. I changed it in the Internet Options control panel. I used the program defaults tab of Add/remove Programs control panel. I installed various other browsers in an attempt to cause one of them to fix the broken setting. I changed the file type handlers from the Folder Options control panel. I even tried manually editing the registry entry for http and https protocols. None of this had any affect whatsoever on the error in Outlook. I performed a repair install on Office, I updated to the latest service pack, all in vain. The only solution I've uncovered was to uninstall ie8. Issuing this command: %windir%\ie8\spuninst\spuninst.exe will revert to ie7 which of course cannot be safely used at this point in time. At least after uninstalling ie8 firefox or chrome is able to install itself as the default browser successfully.

Tuesday, December 20, 2011

Install Chrome without admin rights

At my agency we actively encourage users to switch to a browser other than IE. Unfortunately I understand there are many IT departments in the world who still maintain a draconian insistence on IE. Without administrator privileges it's not possible to install Firefox, but luckily Google has built Chrome to install without them! Take that tyrannical IT overlords! Faster and safer browsing without your permission! I understand there may be some GP or something somewhere that disables this but for the most part it seems to work. Another downside is that the default Chrome installer only makes the application available for a single user. Google has thoughtfully provided an alternate installer which addresses this issue as well (alternate installer DOES need admin though).

Tuesday, November 29, 2011

Missing .exe file association in Windows XP

I recently encountered an XP machine that seemed unable to execute anything. When opening an executable I'd be met with either "Application Not Found" or else the Open With... dialog box. Obviously this made the computer pretty well unusable. Though I'm not entirely certain how this occurred (virus?) I was able to correct the missing file association which enabled me to run the virus scanner. This page has a number of .reg files with the correct XP file associations for lots of different formats, notably .exe. There's some instructions at the top for getting these keys imported to the registry without being able to run regedit, but I found explorer correctly handled the .reg file without any tinkering. Once those keys were in place everything worked as it should. Easy as pi!