Processing Tshark Streams With PowerShell

Wireshark is a packet capture and analysis tool, however, not as well known is the command line version that is bundled into the install - tshark. One huge advantage of tshark is its ability to write packet data directly to disk, which avoids a common issue with leaving Wireshark…

Get-ADGroupMember -Recursive Doesn't Return All Members

This recently cropped up when I was running some auditing scripts to ensure Domain/Enterprise/etc Admins were part of the Protected Users group. It was a simple script that pulled members from the privileged groups, and compared them to members of the Protected Users group. Quick…

Finding Active Windows 7 Machines In Active Directory

Quick one today (won’t even need a TL;DR), with Windows 7 no longer supported (ESU program being the exception) we’re all making sure either existing or new clients have no leftover machines on the domain. Here is a quick PowerShell snippet to find any Win 7 machines that have…

Monitoring FRS For Journal Wrap Errors (JRNL_WRAP_ERROR)

TL;DR If you’re monitoring for NtFrs Event Id 13568, you should also monitor for NtFrs Event Id 13561. But why? Most of us that look after AD environments are familiar with NtFrs Event Id 13568 - maybe not the number itself (because what kind of masochist forces themselves to…

How To Obtain IP Addresses Of Remote Desktop Clients With PowerShell

If you’ve ever managed a terminal server or RDS chances are there has been a need to identify the IP address of connected clients. Task manager gives us the client hostname but sometimes DNS can have stale entries or the client can be on the remote side of a VPN. We can use tools…

Exploring IP GeoLocation With PowerShell

IP Geolocation is the mapping of an IP address to its geographical location, typically a country, state, or city. We can be confident that an IP block allocated by a regional internet registry (e.g, APNIC) to an Australian ISP will mean that IP range will be assigned to a service…