Category Archives: powershell

Write to an Existing File Without Updating LastWriteTime or LastAccessTimestamps Using PowerShell

This little trick was something I stumbled upon while attempting to help solve an issue with a file scan that was about to take place. We wanted to know the last time a file was accessed and build out a … Continue reading

Posted in powershell, scripts | Tagged , , , , | 2 Comments

PowerShell and Events: Object Events

Continuing in my little series on PowerShell and different types of events, I will go into working with Object events and how you can use those with the Register-ObjectEvent cmdlet. Because the parameters are the same as Register-EngineEvent, I won’t … Continue reading

Posted in powershell, scripts | Tagged , , , | 3 Comments

Use PowerShell and WMI to Locate Multiple Files on Any Drive in your Domain

A couple of days ago I was browsing my RSS feeds and came across an article that PowerShell MVP Jeffery Hicks wrote regarding the use of finding files using WMI with a function called Get-CimFile. That article is listed below: … Continue reading

Posted in powershell, scripts | Tagged , , , | 9 Comments

PowerShell and Events: Engine Events

There are 4 types of events  that you can register and use for Event Handling: Engine Events, Object events (.Net),CIM (PowerShell V3 only) and WMI events . These provide a great way to provide some asynchronous event handling to monitor … Continue reading

Posted in powershell, scripts | Tagged , , | 7 Comments

Report the CrashOnAuditFail Setting on Your Computers

CrashOnAuditFail is a setting on each operating system that is used to essentially stop your system if it can no longer write to the Security log. the stop us typically a Blue Screen of Death (BSOD) that bring the system … Continue reading

Posted in powershell, scripts | Tagged , , , | Leave a comment