Category Archives: scripts

Read File Without Updating LastAccess TimeStamp using PowerShell

In my last article I showed you how to write to a file covertly without updating the LastWrite and LastAccess time and even avoid being tripped by the FileSystemWatcher event.  This is a follow-up to that article that uses many … Continue reading

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

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