Skip to content

Instantly share code, notes, and snippets.

View thefaxe's full-sized avatar
💭
I may be slow to respond.

Peter Faxe Lachenmair thefaxe

💭
I may be slow to respond.
View GitHub Profile
function Get-RdpLogonEvent
{
[CmdletBinding()]
param(
[Int32] $Last = 10
)
$RdpInteractiveLogons = Get-WinEvent -FilterHashtable @{
LogName='Security'
ProviderName='Microsoft-Windows-Security-Auditing'