In this article, I will focus on Microsoft Defender. I will give you a few examples that you can build on. It’s not about doing wonderful things, it’s about basics. Let’s jump […]
Documenting all GPOs with PowerShell
Active Directory Group Policies (GPO) enables you to control user and computer settings. It is important to document them. In this blog post I am going to show you two PowerShell commands […]
How to install Windows Terminal on Windows Server 2022
Only Microsoft knows why Windows Terminal is only available on client OS. But there is a way out. We can install Windows Terminal also on Windows Server via PowerShell. The disadvantage is […]
Monitor Local User Logons on Windows Operating Systems
User Logons on Microsoft Windows operating systems are called Logon Events. In this short blog post I will show you a PowerShell One-Liner which retrieves all user logons of a particular user. […]
Empty the Recycle Bin with PowerShell and the Task Scheduler
In this post I will show you how to empty the recycle bin automatically. For this I will use PowerShell and Scheduled PowerShell Jobs. So I will show two ways how to […]
Create multiple DNS A Records with PowerShell
Imagine you have to create hundreds or thousands of DNS records. Do you want to do that one by one? Surely not. I will show you an example how to create Beamer01 […]
Configure DHCP-Server-Role with PowerShell
The Dynamic Host Control Protocol (DHCP) helps you manage your network by automatically assigning IP-Adresses to hosts. In this article I will show you how to configure a DHCP Server with a […]
List all logged on Users with quser.exe and PowerShell
In this short article I will show how to list all logged on local users with the quser.exe tool. Quser displays information about logged on users on the local computer and on […]
Exchange: How to export Mailboxes to PST Files
Today I will show you how to export Mailboxes from an Exchange Server to a single PST file. This blog post applies only to On-Premise Exchange Servers. By default, it’s currently not […]
How to implement your PowerShell 7 Scripts in Task Scheduler
So you’re already working with the latest PowerShell version and wondering how to automate your PowerShell 7 scripts with the task scheduler? Yes? Ok, then stay tuned I will show you two […]
Using winget with PowerShell to install Software remotely
In this blog post I will carry out how to remotely install software on a domain-joined Windows 11 client. Winget is a command line tool that provides a lot of different options […]
Monitoring Logon Attempts in Active Directory with PowerShell
Domain-Controllers monitor successful logon attempts by default. All events of all login attempts are logged in the Event Viewer. In this article I will cover how to monitor all logon events with […]
Active Directory: Find orphaned (unused) User Accounts with PowerShell
This short blog post will show you how you can find orphaned user accounts in Active Directory that may no longer be in use. Let’s go. Code Here is an example screen […]
Active Directory: Find users based on Attributes and add them to a Group with PowerShell
Active Directory objects are usually stored in organizational units. Sometimes these organizational units don’t refer to the site where the users work. The goal for this article is to retrieve these users […]
Register and Create Scheduled Jobs with PowerShell
Scheduled jobs do something based on a trigger. We are able to configure scheduled jobs with the graphical user interface or – from my point of view – much easier and faster […]



