Comments on: Powershell to check if Account is Enable or Disabled./2009/03/16/powershell-to-check-if-account-is-enable-or-disabled/Microsoft Exchange & OWA Resources, Information - Optimize, Support, Manage | How-To | Guides | Reference | AdminFri, 03 Jun 2016 12:03:55 +0000hourly1http://wordpress.com/By: Powershell Useraccountcontrol Disabled | Liyongbak/2009/03/16/powershell-to-check-if-account-is-enable-or-disabled/#comment-10799Fri, 03 Jun 2016 12:03:55 +0000/?p=125#comment-10799[…] Powershell to check if Account is Enable or Disabled … – Mar 16, 2009  · Useraccountcontrol Flag can help user to check if account is enabled or Disbaled. Please find the below mentioned script to find the same. If … […]

]]>
By: Dan/2009/03/16/powershell-to-check-if-account-is-enable-or-disabled/#comment-1725Wed, 10 Jul 2013 21:18:05 +0000/?p=125#comment-1725Or use the Active Directory module..
>Import-Module ActiveDirectory
>Search-ADAccount -AccountDisabled

]]>
By: Seth/2009/03/16/powershell-to-check-if-account-is-enable-or-disabled/#comment-1045Sat, 29 Sep 2012 00:13:39 +0000/?p=125#comment-1045Way cool! Some very valid points! I appreciate you writing this article plus
the rest of the website is extremely good.

]]>
By: BIll/2009/03/16/powershell-to-check-if-account-is-enable-or-disabled/#comment-1037Fri, 21 Sep 2012 17:31:51 +0000/?p=125#comment-1037I believe it should be:
if(($value -BAND 2) -eq 0)
But thanks, helped me go in the right direction.

]]>
By: Paul M Vincent/2009/03/16/powershell-to-check-if-account-is-enable-or-disabled/#comment-931Tue, 07 Aug 2012 18:52:18 +0000/?p=125#comment-931Allways use BitWise operators when dealing with UserAccountControl..

Change the evaluation statments to this

if($Value -BAND 2 -eq 0)
{
Write.Output “Account Enabled”
}
else
{
Write-Output “Account Disabled”
}

]]>
By: Rudy Maes/2009/03/16/powershell-to-check-if-account-is-enable-or-disabled/#comment-856Mon, 23 Jul 2012 10:21:01 +0000/?p=125#comment-856The above expmle will mis account wit value 66050 thes account are normal accounts, disbale but have the don’t expire pasw flag set

]]>