Scripts

Deleting large amounts of files

I have found over the years that I need to delete a large amount of files at one time.  The problem with the del, rmdir, and even remove-item they all use an array then delete things, which takes memory and time.  This way you can just delete all the files in real time file by file. [IO.Directory]::enumeratefiles(“c:\windows\temp\”,”get-cswindows*”) | %{remove-item $_}…

Continue Reading

Scripts

Ghetto Script to get Edge Information

I wrote this script in about 15 minutes to do Edge Configuration checks in Lync/Skype for Business.  It’s not very fancy, and in the next version, I will make it a little more automated.  The problem is most people don’t allow Remote PS (They just don’t set it up, or block it for some security reason, never mind RDP…).  Anyways…

Continue Reading