Tag Archives: Clean-Temp

Clean-Temp

In my last post I showed you how to create 2000 files in the temp folder. If you want to delete them fast you can use my function Clean-Temp. I have been writing about it before. And now It’s updated … Continue reading

Posted in PowerShell Blogs | Tagged , | 4 Comments

Clean Temp Function (Updated)

This is a small but effective function. It will delete most of the stuff in your temp dir.   Use with close option to close all open programs before you clean the temp dir. It will not delete open/locked files. … Continue reading

Posted in PowerShell Blogs | Tagged , , | Leave a comment

Clean-Temp function

I’m working on some functions that can help when working with installation and MSI files. This one is the first one. function Clean-Temp { $myTemp = "$Env:temp" get-Childitem $myTemp | remove-Item -recurse -force } This function deletes everything in the … Continue reading

Posted in PowerShell Blogs | Tagged , , , , | Leave a comment