PowerShell: Get Account Enabled and Password Status

Account Enabled and Password Information Icon

Recently I needed to retrieve the account enabled status and password information from Active Directory for a small number of users. I created this script to quickly retrieve their password and enabled data. $usernames = @(‘testuser’,’testuserm’,’johnsona’,’administrator’,’guest’) $filter = [scriptblock]::create(($usernames| foreach … Continue reading