Tag Archives: stream

Prevent Write-Debug From Bugging You

If you are like me, you try to take advantage of already available methods of displaying output that displays information about a running function or script or  some other internal information by using Write-Verbose/Debug. The best thing about this is … Continue reading

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

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