In this post, I'll show you how to store the keys in a Google Cloud Storage Bucket instead of statically in the code. This will allow you to update your certificate authentication with Let's Encrypt without deploying a new version of your app (thank goodness), and is a great first step towards automating this process entirely.
I didn't find a guide that brought this all together on the web, so here it is. We are going to be adding a module to our app that will be returning the correct text for the Let's Encrypt validation, using express middleware to direct the route correctly, and having a lot of fun!
Here is a quick walkthrough to configure logs on Amazon Linux, including IAM role creation.
Let's start with the IAM policy that the role will consume. Go to IAM > Policies > Create Policies, and select 'Create Your Own Policy'
This script will take a google user export, find mailboxes matching the email addresses in Exchange, and disable the mailboxes. Make sure you are not letting Google AD Sync synchronize until you are done with this process.
I have been working on archiving and removing a a little over 3000 Exchange Mailboxes that had been sitting since my client's move to Google Apps. Obviously, I didn't want to manually go through and export and disable all of the mailboxes, so I made a quick and dirty script which I thought I would share here. Emphasis on quick and dirty here. :)
Windows Server 2016 has a lot of things disabled out of the box as to improve responsiveness and reliability. One of those things is Windows Photo Viewer. In this quick tutorial, I'll show you how to enable it. Now as you read through this, you might be wondering if there is a way to enable the Photo Viewer with Windows add / remove features or some built-in utility like that, but as much as I searched, I could not find a way to do it from within Windows Server 2016. So this method uses a donor OS.
Okay okay, it's not magic, but this is still a great use case for some quick and dirty PowerShell scripting. Context: Google Mail is unable to export a user list that includes the 'Department' field that is being synchronized from Active Directory, but I am being asked to take a google export of several thousand users from another group, and add the Department field from AD into the export. Fortunately, PowerShell makes this kind of task a breeze!
I ran into a really quick and easy way to add/remove properties from powershell objects or arrays of objects, and wanted to share it. Basically, you just pipe an object into itself while selecting the all of the properties you want, even if they don't exist. Let's have a look...
First, make a new object with a Name property.
A common problem I see at different businesses is a ton of computer objects just hanging out in Active Directory for machines that were removed from service a long time ago. Here is a quick set of powershell commands I use to get those removed quickly and easily! NOTE: you will need the Microsoft Remote Server Administrator Tools (RSAT) installed and enabled on the machine you are running this on in order to use these modules.
First, you need to make an array that has all of the old computers in it: