I usually hit Winkey and start typing whatever it is I’m looking to start; be it a command prompt, Outlook, explorer, or other installed applications and I rarely (read: never) use it for searching the internet. Sometimes search gets “stuck”… because it’s crashing in the background. Here’s a method to improve performance and reliability of…

Read More Improving Performance and Reliability of Windows Search

czkawka tool to find duplicates works pretty well. I ran it against my NAS as I want to migrate data from that aging device to a new device and figured I would take the time to clean up many duplicate files. I have a previous post from the other day that details some of my journey with it…

Read More Bulk Delete Duplicate Files Using czkawkas Results File

The PowerShell script is designed to extract information about Remote Desktop Protocol (RDP) local session manager events from the Windows event logs on a RDS host and save it to a CSV file. Script: Get events with EventID 40 from Microsoft-Windows-TerminalServices-LocalSessionManager/Operational Event Log $RDPAuths = Get-WinEvent -LogName ‘Microsoft-Windows-TerminalServices-LocalSessionManager/Operational’-FilterXPath ‘<QueryList><Query Id=”0″><Select>*[System[EventID=40]]</Select></Query></QueryList>’ [xml[]]$xml = $RDPAuths | ForEach-Object…

Read More Analyze RDP Disconnection Logs using PowerShell

Working with some older Cisco ASA devices, I’m trying to access the ASDM interface. The browser isn’t giving me luck, so I turned to PowerShell to help me, but I get the following error when trying an Invoke-WebRequest to grab the asdm.jnlp file I need. The underlying connection was closed: Could not establish trust relationship for the…

Read More Could not establish trust relationship for the SSL/TLS secure channel.

This PowerShell script retrieves information about enabled Active Directory (AD) users, including their SAM account name, last logon time, and organizational unit (OU). The script makes use of several cmdlets and concepts that are common in PowerShell, including filtering, selecting, sorting, and transforming data. Get-ADUser -Filter * -Properties lastLogon | Where-Object { $_.Enabled -eq $True…

Read More Get Enabled AD Users with Last Logon Time and Organizational Unit Information

Handling commandline arguments in VB.NET (or really anything) can be tricky. I came across the following class the other day while looking for a drop-in solution to a RAD I was developing. Here’s what my usage shows for my application, thanks to the .NET class. portscan.exe portscan 0.9.2 by Rich Kreider Usage: portscan -h <host>…

Read More Handling Commandline Arguments in VB.NET