Scripts

I find myself very often copying files between servers, specfically the CUs, so I wanted a faster way of doing that.  This script will copy the files from c:\source to the UNC of another front end server in a pool, in this example the folder is c:\source\Lync2013CU2809243 get-csservice -Registrar | %{Get-CsComputer -pool $_.PoolFqdn | %{new-item -Name Source -ItemType Directory -Path…

Continue Reading

Scripts

Connecting to Office 365 PowerShell

Many time I find myself wanting to connect to Exchange, Skype for Business, and Azure AD all at the same time.  Maybe I have a sheet that has parts from each of those area and I need to connect it all in another sheet.  This post is derived from this page, but simplified, I hope https://support.office.com/en-us/article/Managing-Office-365-and-Exchange-Online-with-Windows-PowerShell-06a743bb-ceb6-49a9-a61d-db4ffdf54fa6?ui=en-US&rs=en-US&ad=US To do this, you…

Continue Reading

Scripts

Simple File Copy Script

Very often I have to copy files around during a deployment. So to make it simple I have a script that will do that for me. You can add roles (I have commented out edge since that is not usually domain joined. $Source = “C:\Source” $currenthost = (Get-WmiObject win32_computersystem).DNSHostName+”.”+(Get-WmiObject win32_computersystem).Domain $filestocopy = get-childitem $source | %{$_.FullName} #Function To copy files…

Continue Reading