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 […]
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 […]
Neuer Udemy Kurs: Hardening Windows Server und Windows Client Betriebssysteme
Liebe Follower! Ein neuer Udemy Kurs ist online. Diesmal geht es um die Härtung von Windows Server und Windows Clients. Link zum Kurs: https://www.udemy.com/course/hardening-windows-server-und-windows-client-betriebssysteme/?referralCode=4B25901DAC9391F5C538 Liebe Grüße!
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 […]
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? […]
Active Directory: Changing Default Password and Lockout Policies
Default Domain Policy password policies determine the complexity and minimum length of Active Directory domain passwords. Because the preconfigured default settings are suboptimal, many administrators decide to change the default policy settings. […]
Microsoft Azure: How to exclude VMs from the Auto Start-Stop schedule with PowerShell
Last weekend I successfully created an automation account in Azure to auto start-stop my Azure VMs as described here: Start/Stop VMs during off-hours solution in Azure Automation. Right after that I realized […]
PowerShell: Retrieve and monitor System Time of all Computers with Get-Time
Do you have problems with time synchronization in your Active Directory domain or are you only interested in monitoring and determining the system time of your servers, workstations or domain-controllers? If your […]
Exchange/Outlook: Hide Group Members in Address Book with PowerShell
Who are the group members? The members of a distribution group can be listed by any user in Outlook. Sometimes you don’t want that. This is what the group attribute hideDLMembership stands […]
Windows 10: Deny Windows Store Access and Disable all Apps from Microsoft Store with Group Policies
With the release of Windows 10, Microsofts Client-Operating System has become more and more an app-focused operating system. Windows 10 S underlines that. In Windows 10 S, users can only install apps […]
Grant Administrators Full Control Access on Roaming Profiles Folders (Grant-RoamingProfilesAccess)
Maybe you already had the following problem: You’re using roaming profiles. You are the administrator of the domain. You can’t access the roaming profiles folder. You have to take ownership of each […]
PowerShell: Getting Windows Defender Status from all Domain Joined Computers (Get-AntiMalwareStatus)
You are using Windows 10 and Windows Server 2016 or higher? Want to check the status of Windows Defender Anti-Malware from all computers? Then you’ve come to the right place. I’ll give you […]