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 current users temp folder.

No high tech, but nice to have!

 

No related posts.

This entry was posted in PowerShell Blogs and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>