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

WinRM Management Consideration

Infrastructure needs to be able to leverage scripting automation to perform Vulnerability Remediation, Resource Provisioning,…

PowerShell: Create and Edit SMB Shares

# Create SMB Share $sharePath='C:\testshare' $accessList="$env:USERDOMAIN\Domain Admins","NT AUTHORITY\Authenticated Users" $shareName=split-path $sharePath -leaf mkdir $sharePath New-SmbShare…

Two Useful Workstation Shortcuts for Non-Savvy Users

Lockdown: %windir%\system32\rundll32.exe user32.dll,LockWorkStation Shutdown: shutdown -s -m \\computername -t 7200
Other project: DragonCoin.com