Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Use Windows PowerShell to Get a List of All My ComputersContent of Use Windows PowerShell to Get a List of All My Computers.ps1MD5 Hash: DCBC87E6C7A8E1113C528A1A4EB3C3B7 |
||
$strCategory = "computer"
$objDomain = New-Object System.DirectoryServices.DirectoryEntry $objSearcher = New-Object System.DirectoryServices.DirectorySearcher $objSearcher.SearchRoot = $objDomain $objSearcher.Filter = ("(objectCategory=$strCategory)") $colProplist = "name" foreach ($i in $colPropList){$objSearcher.PropertiesToLoad.Add($i)} $colResults = $objSearcher.FindAll() foreach ($objResult in $colResults) {$objComputer = $objResult.Properties; $objComputer.name} | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |