LazyAdmin

Tips from an other Admin

Connect to Google API with Powershell

We are going to connect to the Google API with OAuth2.0 and the Powershell Invoke-RestMethod cmdlet. Before we can start scripting in Powershell we first need to get a ClientId, ClientSecret, AuthCode and finally the Access and Refresh tokens. It took me half a day to figure out how to connect to where to get what, so I hope you…

Continue Reading →

Installing Grafana, InfluxDB and Telegraf using Docker

I have been using PRTG for monitoring our network for over 5 years now, but I never liked the look and feel of the dashboards. So when we moved to a new office it was time to get something nice on the wall. With Grafana you can create really nice dashboard, using data from different sources. If you have a…

Continue Reading →

Why good hosting is important for WordPress

I want to bring my content fast and reliable to my readers, and although WordPress is a great Content Management System these days, it can be a bit sluggish if you don’t use a decent webhost with caching. I have built many websites over the years and got in touch with many web hosting parties, one of them was standing…

Continue Reading →

Using Microsoft Graph API with Powershell

Microsoft Graph API gives you the ability to interact with the continually evolving Azure services through a single endpoint: https://graph.microsoft.com. We are going to connect to Graph with Powershell, OAuth 2.0 and REST. Registering your App To interact with Graph we need to register our app. Go to https://apps.dev.microsoft.com/portal/register-app to get started. Login with your account that is associated with your tenant….

Continue Reading →

Wipe Mobile Device with Powershell

When you need to remotely wipe a Mobile Device that’s connected to Exchange Online, you can use Powershell to perform the task quickly. With Clear-Mobile device cmdlet you will remove all data on the device, so this will also delete any photo’s, apps or other personal data on it. To do this we need to connect to Exchange Online, we…

Continue Reading →