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: How to Change Active Directory Username

$oldUsername='testUser' $newUsername='tUser' function changeUsername{ param( $oldUsername, $newUsername ) $domainName=$env:USERDNSDOMAIN $newUserPrincipleName="$newUsername@$domainName" try{ Set-ADUser $oldUsername -SamAccountName $newUsername…

PowerShell: connectWinRM Function to Create New-PSSession

This reusable function may be included into PoSh scripts for better connection toward Windows machines…

OpenLDAP Migration

LDAP PKGSRC Cutover # Compress ldap directory on WEB01.PROD tar -C /home/webadmin/pkg/var/openldap -czvf /tmp/kimconnect-com.gz kimconnect-com…