Dear Readers and Followers! I created a new LinkedIn Group called PowerShell Engineers. The group is aimed to System Engineers from the beginner to the pro. I would be delighted if we […]
PowerShell: Testing the connectivity to the Default Gateway on localhost and Remote Hosts by reading the Routing Table

How to test the connection to the default gateway without knowing the IP-Address of that Gateway?
Windows Server 2016: Configuring Time based Group Membership with PowerShell

With Windows Server 2016 there is a new Feature called Privileged Access Management Feature. This feature is only available in Active Directory Environments running Windows Server 2016 Forest Mode. This guide shows […]
Demoting the last Active Directory Domain Controller with PowerShell

Today I’ve made a decision. Weeks ago, I have changed the default language of the operating system of my Domain Controller from German to English. It worked great. But now, I found […]
PowerShell: Configuring Fine Grained Password Policies (PSO)

Since Windows Server 2008, Domain Administrators are able to configure password polices per user and per group. This article shows how to set up password policies (Password Setting Objects) with PowerShell.
PowerShell: Enable Remote Desktop on multiple Servers remotely (Bulk)

In this article I show how to activate Remote Desktop on multiple server systems in an active directory environment by using Windows PowerShell. In large environments, it might be necessary to enable […]
PowerShell: Changing Active Directory user logon names (Bulk)

Active Directory users log on to the domain with their logon names and password. But what are the rules for assigning usernames? g.surname? surname? gsurname? What are the naming conventions? This article looks for and modifies users who do not meet the naming convention.
PowerShell: How to automatically restart applications when they were closed

If you want an application always started and available then this article is for you. Sometimes an application is mistakenly closed by the user. This article shows a step-by-step scenario how to […]
Starting Google Chrome in Kiosk Mode

Today I had the task of figuring out how Goolge Chrome can be started in Kiosk Mode. And now, I want to keep this knowledge in form of this blog post. First […]
PowerShell: Find and close open files (SMB Share)

What files are open? Who is connected to the file server? Those informations might be useful for backing up, maintaining or restarting your file server. To accomplish this task run Get-SmbOpenFile to […]
Securing Active Directory: Who can add computers to the domain? Only the domain admin?

“Only Domain administrators can add computers to the domain.” I can’t count how often I have heared these words. But when installing a new domain, a counter is configured and this counter allows each domain user to add up to 10 computers to the domain. This is the default setting.
PowerShell: Using Format-Wide

When it comes to formatting Format-Table and Format-List are the tools Nr. 1. But what about format-wide? The longer I am playing with it the better I like it. Format-Wide is cool!
PowerShell: Use SSH to connect to remote hosts (Posh-SSH)

Posh-SSH is a PowerShell module for Windows 10. The module allows to establish SSH connections to remote computers. As a prerequisite, Windows Management Framework 5 has to be installed. In this article I will show step-by-step how to install Posh-SSH and establish a remote connection to a computer running Linux.
Measure-Command: A speed comparison (Foreach vs. Foreach-Object)

Measure-Command shows how long a command or script takes to get the result. This is particularly important for large amounts of data.
PowerShell: How to find out users last logon (Get-LocalUser)

With the introduction of PowerShell 5.1 new commands for local user administration were introduced. I`m glad to hear that. I don`t like net user.