Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Search for All Computers Whose Accounts Have Been DisabledContent of Search for All Computers Whose Accounts Have Been Disabled.ps1MD5 Hash: 875EBBA0CCE2B724C31D666936C31C8E |
||
$strFilter = "(&(objectCategory=computer)(userAccountControl:1.2.840.113556.1.4.803:=2))"
$objDomain = New-Object System.DirectoryServices.DirectoryEntry $objSearcher = New-Object System.DirectoryServices.DirectorySearcher $objSearcher.SearchRoot = $objDomain $objSearcher.PageSize = 1000 $objSearcher.Filter = $strFilter $colProplist = "name" foreach ($i in $colPropList){$objSearcher.PropertiesToLoad.Add($i)} $colResults = $objSearcher.FindAll() foreach ($objResult in $colResults) {$objItem = $objResult.Properties; $objItem.name} | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |