Scripts

Get OU Name from SfB User

When dealing with moving or migrating users, you want to do it in batches.  Now yes, you could do this a lot easier.  But I wanted to run it from a SfB centric view, where you don’t have a lot of AD attributes.  This script will take something from the get-csuser cmdlet and get infromation about the user from AD. …

Continue Reading

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