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

Basic CSS: Give a Background Color to a div Element

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css"><style>.red-text {color: red;}h2 {font-family: Lobster, monospace;}p {font-size: 16px;font-family: monospace;}.thick-green-border {border-color: green;border-width: 10px;border-style:…

Batch File to Copy Files Containing Agents’ Names

:: Set variables using system time and date popd   Set today=%Date:~4,2%_%Date:~7,2%_%Date:~10,4%   IF "%today:~0,1%"=="0"…

PowerShell: How To Bypass Double Hop Problems

# This is a working example of hoping without delegation. Fresh creds can be passed…