RDP logon from security log – powershell

Home / Uncategorized / RDP logon from security log – powershell

2 Comments

  • Peca

    works great, but is it possible to edit it so it can get information for X days back? For last month or last 2 weeks

  • Skjalg

    This will give you for the last 2 days:
    $securityLog = Get-EventLog „Security“ -After (Get-Date).AddDays(-2) | where {$_.EventID -eq $intEventID}

Napsat komentář

Vaše emailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *