View the code on Gist.
<# .Synopsis Verify Active Directory credentials .DESCRIPTION This function takes a user name and a password as input and will verify if the combination is correct. The function returns a boolean based on the result. .PARAMETER UserName The samaccountname of the Active Directory user account .PARAMETER Password The password of […]
Introduction This PowerShell Script shows how to use Windows PowerShell to determine the last time that a user logged on to the system. Scenarios In some cases, IT admins want to statistics of user last logon time information. This Windows PowerShell script will help IT admins to determine the last […]