avatar

My New Hugo Site

Fairphone and /e/ OS of the e Foundation

This post is mainly to support /e/ OS and Fairphone. Why am I using /e/ OS? Because it is the first OS that convenient and respects your privacy. No other OS I tried accomplished that so far. What about the Fairphone? Exchangeable Battery, iFixIt Score of 10 and it is Opensource, I think that says it all. Table of contents My experience with /e/ Installing /e/ Apply Root Updating My experience with /e/ So far my experience with /e/ is like the normal Android experience you have with a Google account.

Use PowerShell via context menu to remove double entries from your clipboard

This is a small example for handy use of PowerShell. In this post, I will show you how to clean up your clipboard from double entries by using PowerShell. We will also add it to the context menu for easy access. To clean up the clipboard we will use Get-Clipboard to fetch it and use Select-Object to clean it up. This can be further extended to save the clipboard content to a file with Out-File or Append-Content.

Setting up a free virtual machine on Amazon AWS

This post will show you how to set up an Amazon AWS Free Tier virtual machine (EC2) and how to connect to it via putty. There is no need to read 30 minutes just to experiment with a Linux virtual machine in the cloud. I will try to keep this port as short as possible. Prerequisites: A working credit card A working phone number Installed PuTTY 15 minutes Table of contents: Setting up an AWS account Setting up an AWS Free Tier virtual machine Preparing PuTTY to connect to your AWS EC2 virtual machine Some open-source projects to try on your AWS VM Setting up an AWS account This will just be a short description on how to do it, in case someone needs it.

Never tried Windows Sandbox? - This will change your mind

Windows what? Windows Sandbox, a feature that I completely missed. Then I tried it once and loved it immediately. It takes you literally 5 minutes to set up and is really useful in your daily sysadmin tasks. Prerequisites for using the feature (source: docs.microsoft.com) Windows 10 Pro or Enterprise Insider build 18305 or later AMD64 architecture Virtualization capabilities enabled in BIOS At least 4GB of RAM (8GB recommended) At least 1 GB of free disk space (SSD recommended) At least 2 CPU cores (4 cores with hyperthreading recommended) Table of contents What is Windows Sandbox?

Managed service account for a scheduled task as simple as possible

This will show you how to install a managed service account on a domain joined computer to run a scheduled task. It will not explain how this technology works and will be limited to one computer (further information). There are managed service accounts and group managed service accounts. We will cover the managed service account (the -RestrictToSingleComputer parameter below.). Why do you want to have a managed service account? You will never need to change the password of the account because it gets changed periodically.

Simple PowerShell script to send commands to your servers using Telegram

This is a template in order to send messages to your server to run commands or do checks on the server. I use it on a Ubuntu 18.04 server to trigger LXD backups (Sorry Linux Admins, I was too lazy to rewrite it in Python). Another Telegram “Bot” runs on my little home lab to restart and start servers via Telegram. This script has been tested on Windows and Linux Ubuntu 18.

Windows NTP settings and how to revert to standard settings

If you work with Windows servers and Windows domain controllers in your environment you can relate to this story. From time to time (pun intended) you will stumble over network time protocol (NTP) issues. It can cause you some serious trouble and impact other systems. Here is how to revert everything to a clean slate. Example Issues: Your clients time drifts off and they can not be authenticated to the active directory.

Simple PowerShell Active Directory group monitoring.

This post is about a simple solution to monitor active directory group changes using PowerShell. Please note, this is not the best practice and will only give you insight about a new member or if a member was removed from a group. The best practice way to monitor group membership changes is to change the “Audit Security Group Management” audit policy. There you want to monitor the events 4728, 4732 and 4756.

The zen art of a fancy PowerShell terminal.

Sometimes your eyes need something to look at and relax while starting up PowerShell. Add the following code to the path in the $Profile variable and enjoy your Unicorn. Yes, this may be a rather useless thing to do. But remember you can add everything into your $Profile and load it whenever you start your PowerShell terminal. function Get-RandomColor($string){ $ColorArray = “Cyan”,“Green”,“Red”,“Yellow” Write-Host -ForegroundColor $ColorArray[(Get-Random -Minimum 0 -Maximum ($ColorArray.Length -1))] -Object $string } $AsciiUnicorn = @” ji /.

Get-ADUser properties without the Active Directory Module

I stumbled over this topic while creating a script on client PCs. The script was relying on information stored in the active directory and was running in the logged in users context. Due to limitations on the client machine, I was not able to install the windows feature “Active Directory Module for Windows PowerShell” on all the clients. That’s why I came up with the following function. function Get-ADUserInfos { Param ( [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, Position = 0)] $Identity ) $strFilter = “(&(objectCategory=User)(sAMAccountName=$Identity))” $objDomain = New-Object System.