Troubleshooting Event 4740 Lockout with Caller Computer Name


# Enable netlogon verbose logging on Domain Controller
nltest /DBFlag:2080FFFF
# Search entries with the username “jsmith”
Select-String -Path C:\Logs\netlogon.log -Pattern ‘jsmith’
# Disable netlogon verbose logging on Domain Controller
nltest /DBFlag:0x0

netlogon-log-powershell

MSDN Magazine Issues and Downloads


https://docs.microsoft.com/en-us/archive/msdn-magazine/msdn-magazine-issues

PowerShell Documentation

Windows server 2019 Active Directory using PowerShell

Verify if an update is installed


PS> $A = Get-Content -Path ./Servers.txt

PS> $A | ForEach-Object { if (!(Get-HotFix -Id KB957095 -ComputerName $_)) { Add-Content $_ -Path ./Missing-KB957095.txt }}

Note: 

The $A variable contains computer names that were obtained by Get-Content from a text file. The objects in $A are sent down the pipeline to ForEach-Object

Configure VMs with a Custom Spections

Learn Git

%d bloggers like this: