Connect to Office 365 via PowerShell

I have posted on this before but Microsoft has updated the method so I’ll update on here too.  To connect your Office 365 instance to PowerShell the process is outlined here. When trying this you may get the error ‘The specified module ‘MSOnline’ was not loaded because no valid module file was found in any module directory.’ The below steps show you how to overcome this.  Using the below commands you will also be able to connect to Exchange Online using PowerShell.

Continue reading “Connect to Office 365 via PowerShell”

Use PowerShell to list and export all updates from a Windows machine

Sometimes when trying to find particular updates and troubleshoot Windows update problems you need to be able to manipulate the update data.  Using the ‘installed updates’ applet is not always practical.  I use the below script to give me a .csv files with all updates installed on a machine.

Continue reading “Use PowerShell to list and export all updates from a Windows machine”

Cancel an AWS ‘transfer to VTS’ to your storage gateway

If you use an AWS Storage Gateway as your virtual tape library you may accidentally move one (or more) of your tapes to archive (export in Backup Exec).  Once you initiate this process there is no way to stop it in the AWS console!  You will just see the Transfer to VTS message and have to wait a very long time.  Fortunately you can stop it using the AWS CLI.  You will need your gateway arn and your tape arn (you can find these in Backup Exec) and stop the transfer one tape at a time.

Continue reading “Cancel an AWS ‘transfer to VTS’ to your storage gateway”