Posted On March 31, 2019

One-Liner: Capture Report of Logons in AD

kimconnect 0 comments
blog.KimConnect.com >> Codes , Windows >> One-Liner: Capture Report of Logons in AD
echo %date%,%time%,%username%,logon,%computername% >> \\FILESERVER01\IT\scripts\logons.csv

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Process Watcher – Perform CRM Async Services Maintenance

Update: this script is deprecated in favor of a better one here. Version 1: #…

How to remove a “No mapping between account names and security IDs was done” error

Case 1: This pertains to a domain-joined account on a domain-joined computer. These legacy cmdlets…

PowerShell: Script to Send Emails

In the past, a simple email relay script was sufficient to spool internal messages. However,…