The default value of the maximum number of devices per user in Azure AD is 50 devices. That is a lot. If you want to restrict the number of devices then you came to the […]
Active Directory: List all Network Shares from all Windows Servers
In today’s blog post I show how to retrieve all network shares from all servers in an Active Directory domain to get a nice list in the output. This script is used […]
PowerShell Execution Policy: Unblock Files | Security Zones
PowerShell’s execution policy is a safety feature that controls the conditions under which PowerShell loads configuration files and runs scripts. This feature helps prevent the execution of malicious scripts. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.2 Well, this […]
Administering Windows Defender with PowerShell
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 […]
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. […]
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 […]
PowerShell: Decrypt a Secure String
In this blog post I will carry out how to decrypt a secure string. A secure string is a string that is saved in a non-readable format to temporarily store passwords and […]
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 […]
Microsoft 365: Find Users Last Logon Time (Orphaned User Accounts)
You want to find out the last logon time of your Microsoft 365 user accounts? If so, the right way to do this is using PowerShell. In this blog post I will […]
Microsoft 365: List Mailbox Permissions (AllUser)
With Microsoft Outlook, users can assign permissions to other users in the same organization. The same goes to Microsoft 365 tenant administrators. They can also grant mailbox privileges to other identities. How […]
Microsoft 365: Find and Show Active Sync Users
Active Sync allows users to connect their smartphone with Microsoft 365, respectively Exchange Online. Do you know which users have this feature enabled? If not, read on. I will give you a […]
Video: PowerShell 7 Cmdlets as a replacement for ping, arp, traceroute and nmap
Hi PowerShell fellows, In this video I show you how to use PowerShell 7 cmdlets for various network tasks. Find the code samples at the very bottom. Hope you enjoy it! https://youtu.be/epY6Mvc3HYY
Microsoft 365: List Send and SendAs Permissions of all Users
This is another blog post about Microsoft 365 and Exchange Online. This time I will dedicate myself to a feature that is Outlook and Exchange related. What I am talking about is […]
List all Server Roles from all Windows Servers with PowerShell
So you are about to document your network and os environment? You don’t want to purchase 3rd party software? You want to list all server roles from all servers in your network? […]
Microsoft 365: Show Mailboxes that have Auto-Reply enabled
Mailbox auto-reply settings are usually created and defined by the users himself. If you want to get an overview of the auto-reply settings of your organization you have to ask every user: […]



